home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / tex-k / web2c.kpathsea-2.2.help < prev    next >
Internet Message Format  |  1994-10-25  |  109KB

  1. From interran@uluru.Stanford.EDU Sat Oct 15 20:45:32 1994
  2. Date: Sat, 15 Oct 94 17:45:22 PDT
  3. From: interran@uluru.Stanford.EDU (John Interrante)
  4. To: kb@cs.umb.edu
  5. Subject: web2c.kpathsea-2.2.help
  6.  
  7. Hello Karl,
  8.  
  9. Here's the updated patch for upgrading web2c-6.1 to work with kpathsea
  10. 2.2.  I only had to delete the kpathsea 2.1 bug fixes which are now
  11. part of kpathsea 2.2 and update the web2c/configure.in and
  12. web2c/configure patches to reflect your changes to AC_FIND_XTRA.  You
  13. could even diff this file against web2c.kpathsea-2.1.help if you
  14. wanted and be able to read the output.
  15.  
  16.         John
  17.  
  18. ftp.cs.umb.edu:pub/tex/web2c.kpathsea-2.2.help, 15oct94.
  19.  
  20. This patch will allow you to take advantage of kpathsea-2.2's
  21. improvements over kpathsea-1.8 (faster path searching, runtime
  22. configuration files, etc.---see kpathsea/NEWS).  It will work only
  23. with the version of kpathsea supplied with dviljk-2.2, dvipsk-5.58b,
  24. or xdvik-18c.  It will not work with previous or future versions of
  25. kpathsea, at least not without modification.  Use it at your own risk;
  26. this patch has undergone little testing so it may introduce some new
  27. bugs into your TeX or MF.  You should apply it only if you are
  28. prepared to debug and fix any unexpected problems which might occur.
  29.  
  30. Please direct questions about this patch to the tex-k@cs.umb.edu
  31. mailing list (in other words, not to kb@cs.umb.edu).  Thanks.
  32.  
  33. Here are the instructions for upgrading web2c-6.1 to work with
  34. kpathsea-2.2.
  35.  
  36. 1.  Fetch one of the following tar files, `dviljk-2.2.tar.gz',
  37.     `dvipsk-5.58b.tar.gz', or `xdvik-18c.tar.gz', from your nearest
  38.     CTAN archive.  It does not matter which tar file you fetch since
  39.     they all have the same version of kpathsea.  If you don't plan to
  40.     keep around the dviljk, dvipsk, or xdvik subdirectory, you might
  41.     as well get the smallest tar file: `xdvik-18c.tar.gz'.
  42.  
  43. 2.  Fetch the tar files `web-6.1.tar.gz' and `web2c-6.1.tar.gz' from
  44.     your nearest CTAN archive.
  45.  
  46. 3.  Unpack all of the tar files in the same directory.  You will have
  47.     two new directories: web2c-6.1 and one of dviljk-2.2,
  48.     dvipsk-5.58b, or xdvik-18c depending on which tar file you chose
  49.     in step 1.
  50.  
  51. 4.  Move the subdirectory web2c-6.1/web2c into dviljk-2.2,
  52.     dvipsk-5.58b, or xdvik-18c:
  53.  
  54.     mv web2c-6.1/web2c xdvik-18c
  55.  
  56. 5.  Rename the directory now containing the web2c subdirectory to
  57.     web2c-6.1a or whatever name you choose:
  58.  
  59.     mv xdvik-18c web2c-6.1a
  60.  
  61. 6.  You don't need the remaining files in web2c-6.1 or the
  62.     subdirectories dviljk, dvipsk, or xdvik to build the subdirectory
  63.     web2c, so you can delete them if you wish:
  64.  
  65.     rm -rf web2c-6.1
  66.     rm -rf web2c-6.1a/xdvik
  67.  
  68. 7.  Patch a few files in the web2c subdirectory.  The patch is
  69.     appended below.  First move into the directory containing the
  70.     web2c subdirectory and then run patch:
  71.  
  72.     cd web2c-6.1a
  73.     patch -p -s < web2c.kpathsea-2.2.help
  74.  
  75.     This patch was made so that it won't matter what you call the
  76.     directory containing the web2c subdirectory since you'll be inside
  77.     it before applying the patch.  You shouldn't get any output from
  78.     patch unless an error occurs.
  79.  
  80. 8.  Now follow the normal procedure for installation of web2c-6.1.
  81.     You will have to edit the fmts variable in web2c/Makefile.in if
  82.     you want to build an additional format besides tex.fmt.  You will
  83.     need to have all of the latex input files installed somewhere in
  84.     your /usr/local/lib/texmf if you want to make the latex format.  I
  85.     prefer to build and install both the latex input files and format
  86.     separately (ftp to your nearest CTAN archive, cd to the directory
  87.     /tex-archive/macros/latex, get base.tar.gz and package.tar.gz, and
  88.     follow the directions therein for building and installing latex).
  89.  
  90. *** web2c/Makefile.in.save    Thu Feb  3 04:47:59 1994
  91. --- web2c/Makefile.in    Fri Sep 23 23:45:44 1994
  92. ***************
  93. *** 76,79 ****
  94. --- 76,80 ----
  95.   bases = mf.base cmmf.base
  96.   fmts = tex.fmt latex.fmt 
  97. + fmts = tex.fmt
  98.   # slitex.fmt etex.fmt amslatex.fmt amstex.fmt texinfo.fmt inrstex.fmt
  99.   # picplus.fmt
  100. ***************
  101. *** 125,131 ****
  102.   # wlibs is substituted by web2c's configure, LIBS by general configure
  103.   # routines, and the others by AC_FIND_XTRA.
  104. ! x_include_flags = @x_include_flags@
  105. ! x_lib_flags = @x_lib_flags@
  106. ! x_extra_libs = @x_extra_libs@
  107.   wlibs = @wlibs@
  108.   LIBS = @LIBS@ $(extralibs)
  109. --- 126,132 ----
  110.   # wlibs is substituted by web2c's configure, LIBS by general configure
  111.   # routines, and the others by AC_FIND_XTRA.
  112. ! x_include_flags = @X_CFLAGS@
  113. ! x_lib_flags = @X_LIBS@
  114. ! x_extra_libs = @X_EXTRA_LIBS@
  115.   wlibs = @wlibs@
  116.   LIBS = @LIBS@ $(extralibs)
  117. *** web2c/configure.in.save    Tue Feb  1 14:42:20 1994
  118. --- web2c/configure.in    Sat Oct 15 15:32:23 1994
  119. ***************
  120. *** 33,37 ****
  121.   dnl Must do this last, as the addition to DEFS in Autoconf 1.3 confuses
  122.   dnl the compiler.
  123. ! AC_DECLARE_YYTEXT
  124.   
  125.   echo checking for window system libraries
  126. --- 33,37 ----
  127.   dnl Must do this last, as the addition to DEFS in Autoconf 1.3 confuses
  128.   dnl the compiler.
  129. ! AC_YYTEXT_POINTER
  130.   
  131.   echo checking for window system libraries
  132. ***************
  133. *** 47,54 ****
  134.     AC_FIND_X
  135.     AC_FIND_XTRA
  136. !   if test -z "$Xextlib"; then
  137. !     AC_HAVE_LIBRARY(Xext, Xextlib=-lXext)
  138. !   fi
  139. !   wlibs="-lXt $Xextlib -lX11 $wlibs"
  140.     (cd $srcdir/mf/MFwindow; rm -f x11.c; $LN_S x11-Xt.c x11.c)
  141.   fi
  142. --- 47,51 ----
  143.     AC_FIND_X
  144.     AC_FIND_XTRA
  145. !   wlibs="-lXt $X_R6_LIBS -lX11 $wlibs"
  146.     (cd $srcdir/mf/MFwindow; rm -f x11.c; $LN_S x11-Xt.c x11.c)
  147.   fi
  148. *** web2c/configure.save    Tue Feb  1 14:42:36 1994
  149. --- web2c/configure    Mon Oct 24 12:02:32 1994
  150. ***************
  151. *** 1,16 ****
  152.   #!/bin/sh
  153.   # Guess values for system-dependent variables and create Makefiles.
  154. ! # Generated automatically using autoconf.
  155. ! # Copyright (C) 1991, 1992, 1993 Free Software Foundation, Inc.
  156.   
  157. ! # This program is free software; you can redistribute it and/or modify
  158. ! # it under the terms of the GNU General Public License as published by
  159. ! # the Free Software Foundation; either version 2, or (at your option)
  160.   # any later version.
  161.   
  162. ! # This program is distributed in the hope that it will be useful,
  163. ! # but WITHOUT ANY WARRANTY; without even the implied warranty of
  164. ! # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  165. ! # GNU General Public License for more details.
  166.   
  167.   # You should have received a copy of the GNU General Public License
  168. --- 1,16 ----
  169.   #!/bin/sh
  170.   # Guess values for system-dependent variables and create Makefiles.
  171. ! # Generated automatically using autoconf version 1.11 
  172. ! # Copyright (C) 1991, 1992, 1993, 1994 Free Software Foundation, Inc.
  173.   
  174. ! # This configure script is free software; you can redistribute it and/or
  175. ! # modify it under the terms of the GNU General Public License as published
  176. ! # by the Free Software Foundation; either version 2, or (at your option)
  177.   # any later version.
  178.   
  179. ! # This script is distributed in the hope that it will be useful, but
  180. ! # WITHOUT ANY WARRANTY; without even the implied warranty of
  181. ! # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General
  182. ! # Public License for more details.
  183.   
  184.   # You should have received a copy of the GNU General Public License
  185. ***************
  186. *** 18,132 ****
  187.   # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  188.   
  189. ! # Usage: configure [--srcdir=DIR] [--host=HOST] [--gas] [--nfp]
  190. ! #        [--prefix=PREFIX] [--exec-prefix=PREFIX] [--with-PACKAGE[=VALUE]]
  191. ! # Ignores all args except --srcdir, --prefix, --exec-prefix, and
  192. ! # --with-PACKAGE[=VALUE] unless this script has special code to handle it.
  193.   
  194. ! for arg
  195.   do
  196. -   # Handle --exec-prefix with a space before the argument.
  197. -   if test x$next_exec_prefix = xyes; then exec_prefix=$arg; next_exec_prefix=
  198. -   # Handle --host with a space before the argument.
  199. -   elif test x$next_host = xyes; then next_host=
  200. -   # Handle --prefix with a space before the argument.
  201. -   elif test x$next_prefix = xyes; then prefix=$arg; next_prefix=
  202. -   # Handle --srcdir with a space before the argument.
  203. -   elif test x$next_srcdir = xyes; then srcdir=$arg; next_srcdir=
  204. -   else
  205. -     case $arg in
  206. -      # For backward compatibility, recognize -exec-prefix and --exec_prefix.
  207. -      -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* | --exec=* | --exe=* | --ex=* | --e=*)
  208. -     exec_prefix=`echo $arg | sed 's/[-a-z_]*=//'` ;;
  209. -      -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- | --exec | --exe | --ex | --e)
  210. -     next_exec_prefix=yes ;;
  211. -      -gas | --gas | --ga | --g) ;;
  212. -      -host=* | --host=* | --hos=* | --ho=* | --h=*) ;;
  213. -      -host | --host | --hos | --ho | --h)
  214. -     next_host=yes ;;
  215. -      -nfp | --nfp | --nf) ;;
  216. -      -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  217. -     prefix=`echo $arg | sed 's/[-a-z_]*=//'` ;;
  218. -      -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  219. -     next_prefix=yes ;;
  220. -      -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=* | --s=*)
  221. -     srcdir=`echo $arg | sed 's/[-a-z_]*=//'` ;;
  222. -      -srcdir | --srcdir | --srcdi | --srcd | --src | --sr | --s)
  223. -     next_srcdir=yes ;;
  224. -      -with-* | --with-*)
  225. -        package=`echo $arg|sed -e 's/-*with-//' -e 's/=.*//'`
  226. -        # Reject names that aren't valid shell variable names.
  227. -        if test -n "`echo $package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  228. -          echo "configure: $package: invalid package name" >&2; exit 1
  229. -        fi
  230. -        package=`echo $package| sed 's/-/_/g'`
  231. -        case "$arg" in
  232. -          *=*) val="`echo $arg|sed 's/[^=]*=//'`" ;;
  233. -          *) val=1 ;;
  234. -        esac
  235. -        eval "with_$package='$val'" ;;
  236.   
  237. !      -v | -verbose | --verbose | --verbos | --verbo | --verb | --ver | --ve | --v)
  238. !        verbose=yes ;;
  239.   
  240. !      *) ;;
  241.       esac
  242. !   fi
  243.   done
  244.   
  245. ! trap 'rm -fr conftest* confdefs* core; exit 1' 1 3 15
  246. ! trap 'rm -f confdefs*' 0
  247.   
  248.   # NLS nuisances.
  249.   # These must not be set unconditionally because not all systems understand
  250.   # e.g. LANG=C (notably SCO).
  251. ! if test "${LC_ALL+set}" = 'set' ; then LC_ALL=C; export LC_ALL; fi
  252. ! if test "${LANG+set}"   = 'set' ; then LANG=C;   export LANG;   fi
  253.   
  254. ! rm -f conftest* confdefs.h
  255.   # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  256.   echo > confdefs.h
  257. - compile='${CC-cc} $CFLAGS conftest.c -o conftest $LIBS >/dev/null 2>&1'
  258.   
  259.   # A filename unique to this package, relative to the directory that
  260.   # configure is in, which we can look for to find out if srcdir is correct.
  261. ! unique_file=web2c/web2c.c
  262.   
  263.   # Find the source files, if location was not specified.
  264.   if test -z "$srcdir"; then
  265. !   srcdirdefaulted=yes
  266.     # Try the directory containing this script, then `..'.
  267. !   prog=$0
  268. !   confdir=`echo $prog|sed 's%/[^/][^/]*$%%'`
  269. !   test "X$confdir" = "X$prog" && confdir=.
  270. !   srcdir=$confdir
  271. !   if test ! -r $srcdir/$unique_file; then
  272.       srcdir=..
  273.     fi
  274.   fi
  275. ! if test ! -r $srcdir/$unique_file; then
  276. !   if test x$srcdirdefaulted = xyes; then
  277. !     echo "configure: Can not find sources in \`${confdir}' or \`..'." 1>&2
  278.     else
  279. !     echo "configure: Can not find sources in \`${srcdir}'." 1>&2
  280.     fi
  281. -   exit 1
  282.   fi
  283. ! # Preserve a srcdir of `.' to avoid automounter screwups with pwd.
  284. ! # But we can't avoid them for `..', to make subdirectories work.
  285. ! case $srcdir in
  286. !   .|/*|~*) ;;
  287. !   *) srcdir=`cd $srcdir; pwd` ;; # Make relative path absolute.
  288. ! esac
  289.   
  290.   
  291. - # Save the original args to write them into config.status later.
  292. - configure_args="$*"
  293.   
  294.   
  295. --- 18,319 ----
  296.   # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  297.   
  298. ! # Save the original args to write them into config.status later.
  299. ! configure_args="$*"
  300.   
  301. ! # Only options that might do something get documented.
  302. ! ac_usage="Usage: configure [options] [host]
  303. ! Options: [defaults in brackets after descriptions]
  304. ! --build=BUILD        configure for building on BUILD [BUILD=HOST]
  305. ! --disable-FEATURE    do not include FEATURE (same as --enable-FEATURE=no)
  306. ! --enable-FEATURE[=ARG]    include FEATURE [ARG=yes]
  307. ! --exec-prefix=PREFIX    install host dependent files in PREFIX [/usr/local]
  308. ! --help            print this message
  309. ! --host=HOST        configure for HOST [guessed]
  310. ! --prefix=PREFIX        install host independent files in PREFIX [/usr/local]
  311. ! --quiet, --silent    do not print \`checking for...' messages
  312. ! --srcdir=DIR        find the sources in DIR [configure dir or ..]
  313. ! --target=TARGET        configure for TARGET [TARGET=HOST]
  314. ! --verbose        print results of checks
  315. ! --version        print the version of autoconf that created configure
  316. ! --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  317. ! --without-PACKAGE    do not use PACKAGE (same as --with-PACKAGE=no)
  318. ! --x-includes=DIR    X include files are in DIR
  319. ! --x-libraries=DIR    X library files are in DIR"
  320. ! # Initialize some variables set by options.
  321. ! # The variables have the same names as the options, with
  322. ! # dashes changed to underlines.
  323. ! build=NONE
  324. ! exec_prefix=
  325. ! host=NONE
  326. ! no_create=
  327. ! nonopt=NONE
  328. ! norecursion=
  329. ! prefix=
  330. ! program_prefix=
  331. ! program_suffix=
  332. ! program_transform_name=
  333. ! silent=
  334. ! srcdir=
  335. ! target=NONE
  336. ! verbose=
  337. ! x_includes=
  338. ! x_libraries=
  339. ! ac_prev=
  340. ! for ac_option
  341.   do
  342.   
  343. !   # If the previous option needs an argument, assign it.
  344. !   if test -n "$ac_prev"; then
  345. !     eval "$ac_prev=\$ac_option"
  346. !     ac_prev=
  347. !     continue
  348. !   fi
  349. !   # Accept (but ignore some of) the important Cygnus configure
  350. !   # options, so we can diagnose typos.
  351.   
  352. !   case "$ac_option" in
  353. !   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  354. !   *) ac_optarg= ;;
  355. !   esac
  356. !   case "$ac_option" in
  357. !   -build | --build | --buil | --bui | --bu | --b)
  358. !     ac_prev=build ;;
  359. !   -build=* | --build=* | --buil=* | --bui=* | --bu=* | --b=*)
  360. !     build="$ac_optarg" ;;
  361. !   -disable-* | --disable-*)
  362. !     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  363. !     # Reject names that aren't valid shell variable names.
  364. !     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  365. !       echo "configure: $ac_feature: invalid feature name" >&2; exit 1
  366. !     fi
  367. !     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  368. !     eval "enable_${ac_feature}=no" ;;
  369. !   -enable-* | --enable-*)
  370. !     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  371. !     # Reject names that aren't valid shell variable names.
  372. !     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  373. !       echo "configure: $ac_feature: invalid feature name" >&2; exit 1
  374. !     fi
  375. !     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  376. !     case "$ac_option" in
  377. !       *=*) ;;
  378. !       *) ac_optarg=yes ;;
  379.       esac
  380. !     eval "enable_${ac_feature}='$ac_optarg'" ;;
  381. !   # For backward compatibility, recognize -exec-prefix and --exec_prefix.
  382. !   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  383. !   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  384. !   | --exec | --exe | --ex)
  385. !     ac_prev=exec_prefix ;;
  386. !   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  387. !   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  388. !   | --exec=* | --exe=* | --ex=*)
  389. !     exec_prefix="$ac_optarg" ;;
  390. !   -gas | --gas | --ga | --g)
  391. !     with_gas=yes ;; # Obsolete; use --with-gas.
  392. !   -help | --help | --hel | --he)
  393. !     cat << EOF
  394. ! $ac_usage
  395. ! EOF
  396. !     exit 0 ;;
  397. !   -host | --host | --hos | --ho)
  398. !     ac_prev=host ;;
  399. !   -host=* | --host=* | --hos=* | --ho=*)
  400. !     host="$ac_optarg" ;;
  401. !   -nfp | --nfp | --nf)
  402. !     with_fp=no ;; # Obsolete; use --without-fp.
  403. !   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  404. !   | --no-cr | --no-c)
  405. !     no_create=yes ;;
  406. !   -norecursion | --norecursion | --norecursio | --norecursi \
  407. !   | --norecurs | --norecur | --norecu | --norec | --nore | --nor)
  408. !     norecursion=yes ;;
  409. !   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  410. !     ac_prev=prefix ;;
  411. !   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  412. !     prefix="$ac_optarg" ;;
  413. !   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  414. !   | --program-pre | --program-pr | --program-p)
  415. !     ac_prev=program_prefix ;;
  416. !   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  417. !   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  418. !     program_prefix="$ac_optarg" ;;
  419. !   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  420. !   | --program-suf | --program-su | --program-s)
  421. !     ac_prev=program_suffix ;;
  422. !   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  423. !   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  424. !     program_suffix="$ac_optarg" ;;
  425. !   -program-transform-name | --program-transform-name \
  426. !   | --program-transform-nam | --program-transform-na \
  427. !   | --program-transform-n | --program-transform- \
  428. !   | --program-transform | --program-transfor \
  429. !   | --program-transfo | --program-transf \
  430. !   | --program-trans | --program-tran \
  431. !   | --progr-tra | --program-tr | --program-t)
  432. !     ac_prev=program_transform_name ;;
  433. !   -program-transform-name=* | --program-transform-name=* \
  434. !   | --program-transform-nam=* | --program-transform-na=* \
  435. !   | --program-transform-n=* | --program-transform-=* \
  436. !   | --program-transform=* | --program-transfor=* \
  437. !   | --program-transfo=* | --program-transf=* \
  438. !   | --program-trans=* | --program-tran=* \
  439. !   | --progr-tra=* | --program-tr=* | --program-t=*)
  440. !     program_transform_name="$ac_optarg" ;;
  441. !   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  442. !   | -silent | --silent | --silen | --sile | --sil)
  443. !     silent=yes ;;
  444. !   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  445. !     ac_prev=srcdir ;;
  446. !   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  447. !     srcdir="$ac_optarg" ;;
  448. !   -target | --target | --targe | --targ | --tar | --ta | --t)
  449. !     ac_prev=target ;;
  450. !   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  451. !     target="$ac_optarg" ;;
  452. !   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  453. !     verbose=yes ;;
  454. !   -version | --version | --versio | --versi | --vers)
  455. !     echo "configure generated by autoconf version 1.11"
  456. !     exit 0 ;;
  457. !   -with-* | --with-*)
  458. !     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  459. !     # Reject names that aren't valid shell variable names.
  460. !     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  461. !       echo "configure: $ac_package: invalid package name" >&2; exit 1
  462. !     fi
  463. !     ac_package=`echo $ac_package| sed 's/-/_/g'`
  464. !     case "$ac_option" in
  465. !       *=*) ;;
  466. !       *) ac_optarg=yes ;;
  467. !     esac
  468. !     eval "with_${ac_package}='$ac_optarg'" ;;
  469. !   -without-* | --without-*)
  470. !     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  471. !     # Reject names that aren't valid shell variable names.
  472. !     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  473. !       echo "configure: $ac_package: invalid package name" >&2; exit 1
  474. !     fi
  475. !     ac_package=`echo $ac_package| sed 's/-/_/g'`
  476. !     eval "with_${ac_package}=no" ;;
  477. !   --x) with_x=yes ;; # Obsolete; use --with-x.
  478. !   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  479. !   | --x-incl | --x-inc | --x-in | --x-i)
  480. !     ac_prev=x_includes ;;
  481. !   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  482. !   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  483. !     x_includes="$ac_optarg" ;;
  484. !   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  485. !   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  486. !     ac_prev=x_libraries ;;
  487. !   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  488. !   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  489. !     x_libraries="$ac_optarg" ;;
  490. !   -*) echo "configure: $ac_option: invalid option; use --help to show usage" >&2; exit 1
  491. !     ;;
  492. !   *) 
  493. !     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  494. !       echo "configure: warning: $ac_option: invalid host type" >&2
  495. !     fi
  496. !     if test "x$nonopt" != xNONE; then
  497. !       echo "configure: can only configure for one host and one target at a time" >&2; exit 1
  498. !     fi
  499. !     nonopt="$ac_option"
  500. !     ;;
  501. !   esac
  502.   done
  503.   
  504. ! if test -n "$ac_prev"; then
  505. !   echo "configure: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" >&2; exit 1
  506. ! fi
  507. ! trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15
  508. ! trap 'rm -fr confdefs* $ac_clean_files' 0
  509. ! # Save the original args if we used an alternate arg parser.
  510. ! ac_configure_temp="${configure_args-$*}"
  511. ! # Strip out --no-create and --norecursion so they don't pile up.
  512. ! configure_args=
  513. ! for ac_arg in $ac_configure_temp; do
  514. !   case "$ac_arg" in
  515. !   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  516. !   | --no-cr | --no-c) ;;
  517. !   -norecursion | --norecursion | --norecursio | --norecursi \
  518. !   | --norecurs | --norecur | --norecu | --norec | --nore | --nor) ;;
  519. !   *) configure_args="$configure_args $ac_arg" ;;
  520. !   esac
  521. ! done
  522.   
  523.   # NLS nuisances.
  524.   # These must not be set unconditionally because not all systems understand
  525.   # e.g. LANG=C (notably SCO).
  526. ! if test "${LC_ALL+set}" = 'set'; then LC_ALL=C; export LC_ALL; fi
  527. ! if test "${LANG+set}"   = 'set'; then LANG=C;   export LANG;   fi
  528.   
  529. ! # confdefs.h avoids OS command line length limits that DEFS can exceed.
  530. ! rm -rf conftest* confdefs.h
  531.   # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  532.   echo > confdefs.h
  533.   
  534.   # A filename unique to this package, relative to the directory that
  535.   # configure is in, which we can look for to find out if srcdir is correct.
  536. ! ac_unique_file=web2c/web2c.c
  537.   
  538.   # Find the source files, if location was not specified.
  539.   if test -z "$srcdir"; then
  540. !   ac_srcdir_defaulted=yes
  541.     # Try the directory containing this script, then `..'.
  542. !   ac_prog=$0
  543. !   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  544. !   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  545. !   srcdir=$ac_confdir
  546. !   if test ! -r $srcdir/$ac_unique_file; then
  547.       srcdir=..
  548.     fi
  549.   fi
  550. ! if test ! -r $srcdir/$ac_unique_file; then
  551. !   if test x$ac_srcdir_defaulted = xyes; then
  552. !     echo "configure: can not find sources in ${ac_confdir} or .." >&2; exit 1
  553.     else
  554. !     echo "configure: can not find sources in ${srcdir}" >&2; exit 1
  555.     fi
  556.   fi
  557. ! ac_ext=c
  558. ! # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  559. ! ac_cpp='${CPP}'
  560. ! ac_compile='${CC-cc} $CFLAGS $LDFLAGS conftest.${ac_ext} -o conftest $LIBS >/dev/null 2>&1'
  561.   
  562.   
  563.   
  564.   
  565. ***************
  566. *** 138,152 ****
  567.   if test -z "$CC"; then
  568.     # Extract the first word of `gcc', so it can be a program name with args.
  569. !   set dummy gcc; word=$2
  570. !   echo checking for $word
  571. !   IFS="${IFS=     }"; saveifs="$IFS"; IFS="${IFS}:"
  572. !   for dir in $PATH; do
  573. !     test -z "$dir" && dir=.
  574. !     if test -f $dir/$word; then
  575.         CC="gcc"
  576.         break
  577.       fi
  578.     done
  579. !   IFS="$saveifs"
  580.   fi
  581.   test -z "$CC" && CC="cc"
  582. --- 325,339 ----
  583.   if test -z "$CC"; then
  584.     # Extract the first word of `gcc', so it can be a program name with args.
  585. !   set ac_dummy gcc; ac_word=$2
  586. !   test -n "$silent" || echo "checking for $ac_word"
  587. !   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  588. !   for ac_dir in $PATH; do
  589. !     test -z "$ac_dir" && ac_dir=.
  590. !     if test -f $ac_dir/$ac_word; then
  591.         CC="gcc"
  592.         break
  593.       fi
  594.     done
  595. !   IFS="$ac_save_ifs"
  596.   fi
  597.   test -z "$CC" && CC="cc"
  598. ***************
  599. *** 165,169 ****
  600.   rm -f conftest*
  601.   
  602. ! echo checking how to run the C preprocessor
  603.   if test -z "$CPP"; then
  604.     # This must be in double quotes, not single quotes, because CPP may get
  605. --- 352,356 ----
  606.   rm -f conftest*
  607.   
  608. ! test -n "$silent" || echo "checking how to run the C preprocessor"
  609.   if test -z "$CPP"; then
  610.     # This must be in double quotes, not single quotes, because CPP may get
  611. ***************
  612. *** 171,181 ****
  613.     # make.  It must be expanded now.
  614.     CPP="${CC-cc} -E"
  615. !   cat > conftest.c <<EOF
  616.   #include "confdefs.h"
  617.   #include <stdio.h>
  618.   Syntax Error
  619.   EOF
  620. ! err=`eval "($CPP conftest.c >/dev/null) 2>&1"`
  621. ! if test -z "$err"; then
  622.     :
  623.   else
  624. --- 358,383 ----
  625.     # make.  It must be expanded now.
  626.     CPP="${CC-cc} -E"
  627. !   cat > conftest.${ac_ext} <<EOF
  628.   #include "confdefs.h"
  629.   #include <stdio.h>
  630.   Syntax Error
  631.   EOF
  632. ! # Some shells (Coherent) do redirections in the wrong order, so need
  633. ! # the parens.
  634. ! ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  635. ! if test -z "$ac_err"; then
  636. !   :
  637. ! else
  638. !   rm -rf conftest*
  639. !   CPP="${CC-cc} -E -traditional-cpp"
  640. !   cat > conftest.${ac_ext} <<EOF
  641. ! #include "confdefs.h"
  642. ! #include <stdio.h>
  643. ! Syntax Error
  644. ! EOF
  645. ! # Some shells (Coherent) do redirections in the wrong order, so need
  646. ! # the parens.
  647. ! ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  648. ! if test -z "$ac_err"; then
  649.     :
  650.   else
  651. ***************
  652. *** 185,189 ****
  653.   rm -f conftest*
  654.   fi
  655. ! test ".${verbose}" != "." && echo "    setting CPP to $CPP"
  656.   
  657.   # Make sure to not get the incompatible SysV /etc/install and
  658. --- 387,393 ----
  659.   rm -f conftest*
  660.   fi
  661. ! rm -f conftest*
  662. ! fi
  663. ! test -n "$verbose" && echo "    setting CPP to $CPP"
  664.   
  665.   # Make sure to not get the incompatible SysV /etc/install and
  666. ***************
  667. *** 192,246 ****
  668.   # or the AFS install, which mishandles nonexistent args, or
  669.   # /usr/ucb/install on SVR4, which tries to use the nonexistent group
  670. ! # `staff'.  On most BSDish systems install is in /usr/bin, not /usr/ucb
  671. ! # anyway.  Sigh.
  672. ! if test "z${INSTALL}" = "z" ; then
  673. !   echo checking for install
  674. !   IFS="${IFS=     }"; saveifs="$IFS"; IFS="${IFS}:"
  675. !   for dir in $PATH; do
  676. !     test -z "$dir" && dir=.
  677. !     case $dir in
  678. !     /etc|/usr/sbin|/usr/etc|/usr/afsws/bin|/usr/ucb) ;;
  679.       *)
  680. !       if test -f $dir/installbsd; then
  681. !     INSTALL="$dir/installbsd -c" # OSF1
  682. !     INSTALL_PROGRAM='$(INSTALL)'
  683. !     INSTALL_DATA='$(INSTALL) -m 644'
  684. !     break
  685. !       fi
  686. !       if test -f $dir/install; then
  687. !     if grep dspmsg $dir/install >/dev/null 2>&1; then
  688. !       : # AIX
  689. !     else
  690. !       INSTALL="$dir/install -c"
  691. !       INSTALL_PROGRAM='$(INSTALL)'
  692. !       INSTALL_DATA='$(INSTALL) -m 644'
  693. !       break
  694.       fi
  695. !       fi
  696.         ;;
  697.       esac
  698.     done
  699. !   IFS="$saveifs"
  700.   fi
  701. - INSTALL=${INSTALL-cp}
  702.   test -n "$verbose" && echo "    setting INSTALL to $INSTALL"
  703. ! INSTALL_PROGRAM=${INSTALL_PROGRAM-'$(INSTALL)'}
  704.   test -n "$verbose" && echo "    setting INSTALL_PROGRAM to $INSTALL_PROGRAM"
  705. ! INSTALL_DATA=${INSTALL_DATA-'$(INSTALL)'}
  706.   test -n "$verbose" && echo "    setting INSTALL_DATA to $INSTALL_DATA"
  707.   
  708.   if test -z "$RANLIB"; then
  709.     # Extract the first word of `ranlib', so it can be a program name with args.
  710. !   set dummy ranlib; word=$2
  711. !   echo checking for $word
  712. !   IFS="${IFS=     }"; saveifs="$IFS"; IFS="${IFS}:"
  713. !   for dir in $PATH; do
  714. !     test -z "$dir" && dir=.
  715. !     if test -f $dir/$word; then
  716.         RANLIB="ranlib"
  717.         break
  718.       fi
  719.     done
  720. !   IFS="$saveifs"
  721.   fi
  722.   test -z "$RANLIB" && RANLIB=":"
  723. --- 396,471 ----
  724.   # or the AFS install, which mishandles nonexistent args, or
  725.   # /usr/ucb/install on SVR4, which tries to use the nonexistent group
  726. ! # `staff', or /sbin/install on IRIX which has incompatible command-line
  727. ! # syntax.  Sigh.
  728. ! #
  729. ! #     On most BSDish systems install is in /usr/bin, not /usr/ucb
  730. ! #     anyway.
  731. ! # This turns out not to be true, so the mere pathname isn't an indication
  732. ! # of whether the program works.  What we really need is a set of tests for
  733. ! # the install program to see if it actually works in all the required ways.
  734. ! #
  735. ! # Avoid using ./install, which might have been erroneously created
  736. ! # by make from ./install.sh.
  737. ! if test -z "${INSTALL}"; then
  738. !   test -n "$silent" || echo "checking for a BSD compatible install"
  739. !   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  740. !   for ac_dir in $PATH; do
  741. !     case "$ac_dir" in
  742. !     ''|.|/etc|/sbin|/usr/sbin|/usr/etc|/usr/afsws/bin|/usr/ucb) ;;
  743.       *)
  744. !       # OSF1 and SCO ODT 3.0 have their own names for install.
  745. !       for ac_prog in installbsd scoinst install; do
  746. !         if test -f $ac_dir/$ac_prog; then
  747. !       if test $ac_prog = install &&
  748. !             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  749. !         # AIX install.  It has an incompatible calling convention.
  750. !         # OSF/1 installbsd also uses dspmsg, but is usable.
  751. !         :
  752. !       else
  753. !         INSTALL="$ac_dir/$ac_prog -c"
  754. !         break 2
  755. !       fi
  756.       fi
  757. !       done
  758.         ;;
  759.       esac
  760.     done
  761. !   IFS="$ac_save_ifs"
  762. ! fi
  763. ! if test -z "$INSTALL"; then
  764. !   # As a last resort, use the slow shell script.
  765. !   for ac_dir in ${srcdir} ${srcdir}/.. ${srcdir}/../..; do
  766. !     if test -f $ac_dir/install.sh; then
  767. !       INSTALL="$ac_dir/install.sh -c"; break
  768. !     fi
  769. !   done
  770. ! fi
  771. ! if test -z "$INSTALL"; then
  772. !   echo "configure: can not find install.sh in ${srcdir} or ${srcdir}/.. or ${srcdir}/../.." >&2; exit 1
  773.   fi
  774.   test -n "$verbose" && echo "    setting INSTALL to $INSTALL"
  775. ! # Use test -z because SunOS4 sh mishandles ${INSTALL_PROGRAM-'${INSTALL}'}.
  776. ! # It thinks the first close brace ends the variable substitution.
  777. ! test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  778.   test -n "$verbose" && echo "    setting INSTALL_PROGRAM to $INSTALL_PROGRAM"
  779. ! test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  780.   test -n "$verbose" && echo "    setting INSTALL_DATA to $INSTALL_DATA"
  781.   
  782.   if test -z "$RANLIB"; then
  783.     # Extract the first word of `ranlib', so it can be a program name with args.
  784. !   set ac_dummy ranlib; ac_word=$2
  785. !   test -n "$silent" || echo "checking for $ac_word"
  786. !   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  787. !   for ac_dir in $PATH; do
  788. !     test -z "$ac_dir" && ac_dir=.
  789. !     if test -f $ac_dir/$ac_word; then
  790.         RANLIB="ranlib"
  791.         break
  792.       fi
  793.     done
  794. !   IFS="$ac_save_ifs"
  795.   fi
  796.   test -z "$RANLIB" && RANLIB=":"
  797. ***************
  798. *** 248,253 ****
  799.   
  800.   
  801. ! echo checking for POSIXized ISC
  802.   if test -d /etc/conf/kconfig.d &&
  803.     grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
  804. --- 473,477 ----
  805.   
  806.   
  807. ! test -n "$silent" || echo "checking for POSIXized ISC"
  808.   if test -d /etc/conf/kconfig.d &&
  809.     grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
  810. ***************
  811. *** 258,266 ****
  812.   test -n "$verbose" && \
  813.   echo "    defining _POSIX_SOURCE"
  814. ! echo "#define" _POSIX_SOURCE 1 >> confdefs.h
  815.   DEFS="$DEFS -D_POSIX_SOURCE=1"
  816. ! SEDDEFS="${SEDDEFS}\${SEDdA}_POSIX_SOURCE\${SEDdB}_POSIX_SOURCE\${SEDdC}1\${SEDdD}
  817. ! \${SEDuA}_POSIX_SOURCE\${SEDuB}_POSIX_SOURCE\${SEDuC}1\${SEDuD}
  818. ! \${SEDeA}_POSIX_SOURCE\${SEDeB}_POSIX_SOURCE\${SEDeC}1\${SEDeD}
  819.   "
  820.   }
  821. --- 482,490 ----
  822.   test -n "$verbose" && \
  823.   echo "    defining _POSIX_SOURCE"
  824. ! echo "#define" _POSIX_SOURCE "1" >> confdefs.h
  825.   DEFS="$DEFS -D_POSIX_SOURCE=1"
  826. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}_POSIX_SOURCE\${ac_dB}_POSIX_SOURCE\${ac_dC}1\${ac_dD}
  827. ! \${ac_uA}_POSIX_SOURCE\${ac_uB}_POSIX_SOURCE\${ac_uC}1\${ac_uD}
  828. ! \${ac_eA}_POSIX_SOURCE\${ac_eB}_POSIX_SOURCE\${ac_eC}1\${ac_eD}
  829.   "
  830.   }
  831. ***************
  832. *** 274,289 ****
  833.   
  834.   
  835. ! echo checking for directory library header
  836. ! dirheader=
  837. ! if test -z "$dirheader"; then
  838. !   echo checking for dirent.h
  839. ! cat > conftest.c <<EOF
  840.   #include "confdefs.h"
  841.   #include <sys/types.h>
  842.   #include <dirent.h>
  843. ! int main() { exit(0); }
  844. ! int t() { DIR *dirp = 0; }
  845.   EOF
  846. ! if eval $compile; then
  847.     rm -rf conftest*
  848.     
  849. --- 498,513 ----
  850.   
  851.   
  852. ! test -n "$silent" || echo "checking for directory library header"
  853. ! ac_dir_header=
  854. ! if test -z "$ac_dir_header"; then
  855. !   test -n "$silent" || echo "checking for dirent.h"
  856. ! cat > conftest.${ac_ext} <<EOF
  857.   #include "confdefs.h"
  858.   #include <sys/types.h>
  859.   #include <dirent.h>
  860. ! int main() { return 0; }
  861. ! int t() { DIR *dirp = 0;; return 0; }
  862.   EOF
  863. ! if eval $ac_compile; then
  864.     rm -rf conftest*
  865.     
  866. ***************
  867. *** 291,316 ****
  868.   test -n "$verbose" && \
  869.   echo "    defining DIRENT"
  870. ! echo "#define" DIRENT 1 >> confdefs.h
  871.   DEFS="$DEFS -DDIRENT=1"
  872. ! SEDDEFS="${SEDDEFS}\${SEDdA}DIRENT\${SEDdB}DIRENT\${SEDdC}1\${SEDdD}
  873. ! \${SEDuA}DIRENT\${SEDuB}DIRENT\${SEDuC}1\${SEDuD}
  874. ! \${SEDeA}DIRENT\${SEDeB}DIRENT\${SEDeC}1\${SEDeD}
  875.   "
  876.   }
  877. !  dirheader=dirent.h
  878.   
  879.   fi
  880.   rm -f conftest*
  881.   fi
  882. ! if test -z "$dirheader"; then
  883. !   echo checking for sys/ndir.h
  884. ! cat > conftest.c <<EOF
  885.   #include "confdefs.h"
  886.   #include <sys/types.h>
  887.   #include <sys/ndir.h>
  888. ! int main() { exit(0); }
  889. ! int t() { DIR *dirp = 0; }
  890.   EOF
  891. ! if eval $compile; then
  892.     rm -rf conftest*
  893.     
  894. --- 515,540 ----
  895.   test -n "$verbose" && \
  896.   echo "    defining DIRENT"
  897. ! echo "#define" DIRENT "1" >> confdefs.h
  898.   DEFS="$DEFS -DDIRENT=1"
  899. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}DIRENT\${ac_dB}DIRENT\${ac_dC}1\${ac_dD}
  900. ! \${ac_uA}DIRENT\${ac_uB}DIRENT\${ac_uC}1\${ac_uD}
  901. ! \${ac_eA}DIRENT\${ac_eB}DIRENT\${ac_eC}1\${ac_eD}
  902.   "
  903.   }
  904. !  ac_dir_header=dirent.h
  905.   
  906.   fi
  907.   rm -f conftest*
  908.   fi
  909. ! if test -z "$ac_dir_header"; then
  910. !   test -n "$silent" || echo "checking for sys/ndir.h"
  911. ! cat > conftest.${ac_ext} <<EOF
  912.   #include "confdefs.h"
  913.   #include <sys/types.h>
  914.   #include <sys/ndir.h>
  915. ! int main() { return 0; }
  916. ! int t() { DIR *dirp = 0;; return 0; }
  917.   EOF
  918. ! if eval $ac_compile; then
  919.     rm -rf conftest*
  920.     
  921. ***************
  922. *** 318,343 ****
  923.   test -n "$verbose" && \
  924.   echo "    defining SYSNDIR"
  925. ! echo "#define" SYSNDIR 1 >> confdefs.h
  926.   DEFS="$DEFS -DSYSNDIR=1"
  927. ! SEDDEFS="${SEDDEFS}\${SEDdA}SYSNDIR\${SEDdB}SYSNDIR\${SEDdC}1\${SEDdD}
  928. ! \${SEDuA}SYSNDIR\${SEDuB}SYSNDIR\${SEDuC}1\${SEDuD}
  929. ! \${SEDeA}SYSNDIR\${SEDeB}SYSNDIR\${SEDeC}1\${SEDeD}
  930.   "
  931.   }
  932. !  dirheader=sys/ndir.h
  933.   
  934.   fi
  935.   rm -f conftest*
  936.   fi
  937. ! if test -z "$dirheader"; then
  938. !   echo checking for sys/dir.h
  939. ! cat > conftest.c <<EOF
  940.   #include "confdefs.h"
  941.   #include <sys/types.h>
  942.   #include <sys/dir.h>
  943. ! int main() { exit(0); }
  944. ! int t() { DIR *dirp = 0; }
  945.   EOF
  946. ! if eval $compile; then
  947.     rm -rf conftest*
  948.     
  949. --- 542,567 ----
  950.   test -n "$verbose" && \
  951.   echo "    defining SYSNDIR"
  952. ! echo "#define" SYSNDIR "1" >> confdefs.h
  953.   DEFS="$DEFS -DSYSNDIR=1"
  954. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}SYSNDIR\${ac_dB}SYSNDIR\${ac_dC}1\${ac_dD}
  955. ! \${ac_uA}SYSNDIR\${ac_uB}SYSNDIR\${ac_uC}1\${ac_uD}
  956. ! \${ac_eA}SYSNDIR\${ac_eB}SYSNDIR\${ac_eC}1\${ac_eD}
  957.   "
  958.   }
  959. !  ac_dir_header=sys/ndir.h
  960.   
  961.   fi
  962.   rm -f conftest*
  963.   fi
  964. ! if test -z "$ac_dir_header"; then
  965. !   test -n "$silent" || echo "checking for sys/dir.h"
  966. ! cat > conftest.${ac_ext} <<EOF
  967.   #include "confdefs.h"
  968.   #include <sys/types.h>
  969.   #include <sys/dir.h>
  970. ! int main() { return 0; }
  971. ! int t() { DIR *dirp = 0;; return 0; }
  972.   EOF
  973. ! if eval $ac_compile; then
  974.     rm -rf conftest*
  975.     
  976. ***************
  977. *** 345,370 ****
  978.   test -n "$verbose" && \
  979.   echo "    defining SYSDIR"
  980. ! echo "#define" SYSDIR 1 >> confdefs.h
  981.   DEFS="$DEFS -DSYSDIR=1"
  982. ! SEDDEFS="${SEDDEFS}\${SEDdA}SYSDIR\${SEDdB}SYSDIR\${SEDdC}1\${SEDdD}
  983. ! \${SEDuA}SYSDIR\${SEDuB}SYSDIR\${SEDuC}1\${SEDuD}
  984. ! \${SEDeA}SYSDIR\${SEDeB}SYSDIR\${SEDeC}1\${SEDeD}
  985.   "
  986.   }
  987. !  dirheader=sys/dir.h
  988.   
  989.   fi
  990.   rm -f conftest*
  991.   fi
  992. ! if test -z "$dirheader"; then
  993. !   echo checking for ndir.h
  994. ! cat > conftest.c <<EOF
  995.   #include "confdefs.h"
  996.   #include <sys/types.h>
  997.   #include <ndir.h>
  998. ! int main() { exit(0); }
  999. ! int t() { DIR *dirp = 0; }
  1000.   EOF
  1001. ! if eval $compile; then
  1002.     rm -rf conftest*
  1003.     
  1004. --- 569,594 ----
  1005.   test -n "$verbose" && \
  1006.   echo "    defining SYSDIR"
  1007. ! echo "#define" SYSDIR "1" >> confdefs.h
  1008.   DEFS="$DEFS -DSYSDIR=1"
  1009. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}SYSDIR\${ac_dB}SYSDIR\${ac_dC}1\${ac_dD}
  1010. ! \${ac_uA}SYSDIR\${ac_uB}SYSDIR\${ac_uC}1\${ac_uD}
  1011. ! \${ac_eA}SYSDIR\${ac_eB}SYSDIR\${ac_eC}1\${ac_eD}
  1012.   "
  1013.   }
  1014. !  ac_dir_header=sys/dir.h
  1015.   
  1016.   fi
  1017.   rm -f conftest*
  1018.   fi
  1019. ! if test -z "$ac_dir_header"; then
  1020. !   test -n "$silent" || echo "checking for ndir.h"
  1021. ! cat > conftest.${ac_ext} <<EOF
  1022.   #include "confdefs.h"
  1023.   #include <sys/types.h>
  1024.   #include <ndir.h>
  1025. ! int main() { return 0; }
  1026. ! int t() { DIR *dirp = 0;; return 0; }
  1027.   EOF
  1028. ! if eval $ac_compile; then
  1029.     rm -rf conftest*
  1030.     
  1031. ***************
  1032. *** 372,383 ****
  1033.   test -n "$verbose" && \
  1034.   echo "    defining NDIR"
  1035. ! echo "#define" NDIR 1 >> confdefs.h
  1036.   DEFS="$DEFS -DNDIR=1"
  1037. ! SEDDEFS="${SEDDEFS}\${SEDdA}NDIR\${SEDdB}NDIR\${SEDdC}1\${SEDdD}
  1038. ! \${SEDuA}NDIR\${SEDuB}NDIR\${SEDuC}1\${SEDuD}
  1039. ! \${SEDeA}NDIR\${SEDeB}NDIR\${SEDeC}1\${SEDeD}
  1040.   "
  1041.   }
  1042. !  dirheader=ndir.h
  1043.   
  1044.   fi
  1045. --- 596,607 ----
  1046.   test -n "$verbose" && \
  1047.   echo "    defining NDIR"
  1048. ! echo "#define" NDIR "1" >> confdefs.h
  1049.   DEFS="$DEFS -DNDIR=1"
  1050. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}NDIR\${ac_dB}NDIR\${ac_dC}1\${ac_dD}
  1051. ! \${ac_uA}NDIR\${ac_uB}NDIR\${ac_uC}1\${ac_uD}
  1052. ! \${ac_eA}NDIR\${ac_eB}NDIR\${ac_eC}1\${ac_eD}
  1053.   "
  1054.   }
  1055. !  ac_dir_header=ndir.h
  1056.   
  1057.   fi
  1058. ***************
  1059. *** 385,396 ****
  1060.   fi
  1061.   
  1062. ! echo checking for closedir return value
  1063. ! cat > conftest.c <<EOF
  1064.   #include "confdefs.h"
  1065.   #include <sys/types.h>
  1066. ! #include <$dirheader>
  1067.   int closedir(); main() { exit(closedir(opendir(".")) != 0); }
  1068.   EOF
  1069. ! eval $compile
  1070.   if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1071.     :
  1072. --- 609,620 ----
  1073.   fi
  1074.   
  1075. ! test -n "$silent" || echo "checking for closedir return value"
  1076. ! cat > conftest.${ac_ext} <<EOF
  1077.   #include "confdefs.h"
  1078.   #include <sys/types.h>
  1079. ! #include <$ac_dir_header>
  1080.   int closedir(); main() { exit(closedir(opendir(".")) != 0); }
  1081.   EOF
  1082. ! eval $ac_compile
  1083.   if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1084.     :
  1085. ***************
  1086. *** 400,408 ****
  1087.   test -n "$verbose" && \
  1088.   echo "    defining VOID_CLOSEDIR"
  1089. ! echo "#define" VOID_CLOSEDIR 1 >> confdefs.h
  1090.   DEFS="$DEFS -DVOID_CLOSEDIR=1"
  1091. ! SEDDEFS="${SEDDEFS}\${SEDdA}VOID_CLOSEDIR\${SEDdB}VOID_CLOSEDIR\${SEDdC}1\${SEDdD}
  1092. ! \${SEDuA}VOID_CLOSEDIR\${SEDuB}VOID_CLOSEDIR\${SEDuC}1\${SEDuD}
  1093. ! \${SEDeA}VOID_CLOSEDIR\${SEDeB}VOID_CLOSEDIR\${SEDeC}1\${SEDeD}
  1094.   "
  1095.   }
  1096. --- 624,632 ----
  1097.   test -n "$verbose" && \
  1098.   echo "    defining VOID_CLOSEDIR"
  1099. ! echo "#define" VOID_CLOSEDIR "1" >> confdefs.h
  1100.   DEFS="$DEFS -DVOID_CLOSEDIR=1"
  1101. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}VOID_CLOSEDIR\${ac_dB}VOID_CLOSEDIR\${ac_dC}1\${ac_dD}
  1102. ! \${ac_uA}VOID_CLOSEDIR\${ac_uB}VOID_CLOSEDIR\${ac_uC}1\${ac_uD}
  1103. ! \${ac_eA}VOID_CLOSEDIR\${ac_eB}VOID_CLOSEDIR\${ac_eC}1\${ac_eD}
  1104.   "
  1105.   }
  1106. ***************
  1107. *** 411,416 ****
  1108.   rm -fr conftest*
  1109.   
  1110. ! echo checking for Xenix
  1111. ! cat > conftest.c <<EOF
  1112.   #include "confdefs.h"
  1113.   #if defined(M_XENIX) && !defined(M_UNIX)
  1114. --- 635,640 ----
  1115.   rm -fr conftest*
  1116.   
  1117. ! test -n "$silent" || echo "checking for Xenix"
  1118. ! cat > conftest.${ac_ext} <<EOF
  1119.   #include "confdefs.h"
  1120.   #if defined(M_XENIX) && !defined(M_UNIX)
  1121. ***************
  1122. *** 419,423 ****
  1123.   
  1124.   EOF
  1125. ! eval "$CPP conftest.c > conftest.out 2>&1"
  1126.   if egrep "yes" conftest.out >/dev/null 2>&1; then
  1127.     rm -rf conftest*
  1128. --- 643,647 ----
  1129.   
  1130.   EOF
  1131. ! eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  1132.   if egrep "yes" conftest.out >/dev/null 2>&1; then
  1133.     rm -rf conftest*
  1134. ***************
  1135. *** 435,440 ****
  1136.   fi
  1137.   
  1138. ! echo checking for ANSI C header files
  1139. ! cat > conftest.c <<EOF
  1140.   #include "confdefs.h"
  1141.   #include <stdlib.h>
  1142. --- 659,664 ----
  1143.   fi
  1144.   
  1145. ! test -n "$silent" || echo "checking for ANSI C header files"
  1146. ! cat > conftest.${ac_ext} <<EOF
  1147.   #include "confdefs.h"
  1148.   #include <stdlib.h>
  1149. ***************
  1150. *** 443,457 ****
  1151.   #include <float.h>
  1152.   EOF
  1153. ! err=`eval "($CPP conftest.c >/dev/null) 2>&1"`
  1154. ! if test -z "$err"; then
  1155.     rm -rf conftest*
  1156.     # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  1157.   echo '#include "confdefs.h"
  1158. ! #include <string.h>' > conftest.c
  1159. ! eval "$CPP conftest.c > conftest.out 2>&1"
  1160.   if egrep "memchr" conftest.out >/dev/null 2>&1; then
  1161.     rm -rf conftest*
  1162.     # SGI's /bin/cc from Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  1163. ! cat > conftest.c <<EOF
  1164.   #include "confdefs.h"
  1165.   #include <ctype.h>
  1166. --- 667,683 ----
  1167.   #include <float.h>
  1168.   EOF
  1169. ! # Some shells (Coherent) do redirections in the wrong order, so need
  1170. ! # the parens.
  1171. ! ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  1172. ! if test -z "$ac_err"; then
  1173.     rm -rf conftest*
  1174.     # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  1175.   echo '#include "confdefs.h"
  1176. ! #include <string.h>' > conftest.${ac_ext}
  1177. ! eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  1178.   if egrep "memchr" conftest.out >/dev/null 2>&1; then
  1179.     rm -rf conftest*
  1180.     # SGI's /bin/cc from Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  1181. ! cat > conftest.${ac_ext} <<EOF
  1182.   #include "confdefs.h"
  1183.   #include <ctype.h>
  1184. ***************
  1185. *** 464,478 ****
  1186.   
  1187.   EOF
  1188. ! eval $compile
  1189.   if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1190.     
  1191.   {
  1192.   test -n "$verbose" && \
  1193.   echo "    defining STDC_HEADERS"
  1194. ! echo "#define" STDC_HEADERS 1 >> confdefs.h
  1195.   DEFS="$DEFS -DSTDC_HEADERS=1"
  1196. ! SEDDEFS="${SEDDEFS}\${SEDdA}STDC_HEADERS\${SEDdB}STDC_HEADERS\${SEDdC}1\${SEDdD}
  1197. ! \${SEDuA}STDC_HEADERS\${SEDuB}STDC_HEADERS\${SEDuC}1\${SEDuD}
  1198. ! \${SEDeA}STDC_HEADERS\${SEDeB}STDC_HEADERS\${SEDeC}1\${SEDeD}
  1199.   "
  1200.   }
  1201. --- 690,710 ----
  1202.   
  1203.   EOF
  1204. ! eval $ac_compile
  1205.   if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1206. +   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  1207. + echo '#include "confdefs.h"
  1208. + #include <stdlib.h>' > conftest.${ac_ext}
  1209. + eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  1210. + if egrep "free" conftest.out >/dev/null 2>&1; then
  1211. +   rm -rf conftest*
  1212.     
  1213.   {
  1214.   test -n "$verbose" && \
  1215.   echo "    defining STDC_HEADERS"
  1216. ! echo "#define" STDC_HEADERS "1" >> confdefs.h
  1217.   DEFS="$DEFS -DSTDC_HEADERS=1"
  1218. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}STDC_HEADERS\${ac_dB}STDC_HEADERS\${ac_dC}1\${ac_dD}
  1219. ! \${ac_uA}STDC_HEADERS\${ac_uB}STDC_HEADERS\${ac_uC}1\${ac_uD}
  1220. ! \${ac_eA}STDC_HEADERS\${ac_eB}STDC_HEADERS\${ac_eC}1\${ac_eD}
  1221.   "
  1222.   }
  1223. ***************
  1224. *** 480,483 ****
  1225. --- 712,719 ----
  1226.   
  1227.   fi
  1228. + rm -f conftest*
  1229. + fi
  1230.   rm -fr conftest*
  1231.   
  1232. ***************
  1233. *** 489,513 ****
  1234.   rm -f conftest*
  1235.   
  1236. ! for hdr in assert.h float.h limits.h memory.h pwd.h stdlib.h \
  1237.                   string.h unistd.h
  1238.   do
  1239. ! trhdr=HAVE_`echo $hdr | tr '[a-z]./' '[A-Z]__'`
  1240. ! echo checking for ${hdr}
  1241. ! cat > conftest.c <<EOF
  1242. ! #include "confdefs.h"
  1243. ! #include <${hdr}>
  1244. ! EOF
  1245. ! err=`eval "($CPP conftest.c >/dev/null) 2>&1"`
  1246. ! if test -z "$err"; then
  1247.     rm -rf conftest*
  1248.     
  1249.   {
  1250.   test -n "$verbose" && \
  1251. ! echo "    defining ${trhdr}"
  1252. ! echo "#define" ${trhdr} 1 >> confdefs.h
  1253. ! DEFS="$DEFS -D${trhdr}=1"
  1254. ! SEDDEFS="${SEDDEFS}\${SEDdA}${trhdr}\${SEDdB}${trhdr}\${SEDdC}1\${SEDdD}
  1255. ! \${SEDuA}${trhdr}\${SEDuB}${trhdr}\${SEDuC}1\${SEDuD}
  1256. ! \${SEDeA}${trhdr}\${SEDeB}${trhdr}\${SEDeC}1\${SEDeD}
  1257.   "
  1258.   }
  1259. --- 725,751 ----
  1260.   rm -f conftest*
  1261.   
  1262. ! for ac_hdr in assert.h float.h limits.h memory.h pwd.h stdlib.h \
  1263.                   string.h unistd.h
  1264.   do
  1265. ! ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./' '[A-Z]__'`
  1266. ! test -n "$silent" || echo "checking for ${ac_hdr}"
  1267. ! cat > conftest.${ac_ext} <<EOF
  1268. ! #include "confdefs.h"
  1269. ! #include <${ac_hdr}>
  1270. ! EOF
  1271. ! # Some shells (Coherent) do redirections in the wrong order, so need
  1272. ! # the parens.
  1273. ! ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  1274. ! if test -z "$ac_err"; then
  1275.     rm -rf conftest*
  1276.     
  1277.   {
  1278.   test -n "$verbose" && \
  1279. ! echo "    defining ${ac_tr_hdr}"
  1280. ! echo "#define" ${ac_tr_hdr} "1" >> confdefs.h
  1281. ! DEFS="$DEFS -D${ac_tr_hdr}=1"
  1282. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}${ac_tr_hdr}\${ac_dB}${ac_tr_hdr}\${ac_dC}1\${ac_dD}
  1283. ! \${ac_uA}${ac_tr_hdr}\${ac_uB}${ac_tr_hdr}\${ac_uC}1\${ac_uD}
  1284. ! \${ac_eA}${ac_tr_hdr}\${ac_eB}${ac_tr_hdr}\${ac_eC}1\${ac_eD}
  1285.   "
  1286.   }
  1287. ***************
  1288. *** 519,552 ****
  1289.   
  1290.   
  1291. ! for func in memmove putenv
  1292.   do
  1293. ! trfunc=HAVE_`echo $func | tr '[a-z]' '[A-Z]'`
  1294. ! echo checking for ${func}
  1295. ! cat > conftest.c <<EOF
  1296.   #include "confdefs.h"
  1297.   #include <ctype.h>
  1298. ! int main() { exit(0); }
  1299.   int t() { 
  1300.   /* The GNU C library defines this for functions which it implements
  1301.       to always fail with ENOSYS.  Some functions are actually named
  1302.       something starting with __ and the normal name is an alias.  */
  1303. ! #if defined (__stub_${func}) || defined (__stub___${func})
  1304.   choke me
  1305.   #else
  1306.   /* Override any gcc2 internal prototype to avoid an error.  */
  1307. ! extern char ${func}(); ${func}();
  1308.   #endif
  1309. !  }
  1310.   EOF
  1311. ! if eval $compile; then
  1312.     rm -rf conftest*
  1313.     {
  1314.   test -n "$verbose" && \
  1315. ! echo "    defining ${trfunc}"
  1316. ! echo "#define" ${trfunc} 1 >> confdefs.h
  1317. ! DEFS="$DEFS -D${trfunc}=1"
  1318. ! SEDDEFS="${SEDDEFS}\${SEDdA}${trfunc}\${SEDdB}${trfunc}\${SEDdC}1\${SEDdD}
  1319. ! \${SEDuA}${trfunc}\${SEDuB}${trfunc}\${SEDuC}1\${SEDuD}
  1320. ! \${SEDeA}${trfunc}\${SEDeB}${trfunc}\${SEDeC}1\${SEDeD}
  1321.   "
  1322.   }
  1323. --- 757,790 ----
  1324.   
  1325.   
  1326. ! for ac_func in bcopy memmove putenv
  1327.   do
  1328. ! ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'`
  1329. ! test -n "$silent" || echo "checking for ${ac_func}"
  1330. ! cat > conftest.${ac_ext} <<EOF
  1331.   #include "confdefs.h"
  1332.   #include <ctype.h>
  1333. ! int main() { return 0; }
  1334.   int t() { 
  1335.   /* The GNU C library defines this for functions which it implements
  1336.       to always fail with ENOSYS.  Some functions are actually named
  1337.       something starting with __ and the normal name is an alias.  */
  1338. ! #if defined (__stub_${ac_func}) || defined (__stub___${ac_func})
  1339.   choke me
  1340.   #else
  1341.   /* Override any gcc2 internal prototype to avoid an error.  */
  1342. ! extern char ${ac_func}(); ${ac_func}();
  1343.   #endif
  1344. ! ; return 0; }
  1345.   EOF
  1346. ! if eval $ac_compile; then
  1347.     rm -rf conftest*
  1348.     {
  1349.   test -n "$verbose" && \
  1350. ! echo "    defining ${ac_tr_func}"
  1351. ! echo "#define" ${ac_tr_func} "1" >> confdefs.h
  1352. ! DEFS="$DEFS -D${ac_tr_func}=1"
  1353. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}${ac_tr_func}\${ac_dB}${ac_tr_func}\${ac_dC}1\${ac_dD}
  1354. ! \${ac_uA}${ac_tr_func}\${ac_uB}${ac_tr_func}\${ac_uC}1\${ac_uD}
  1355. ! \${ac_eA}${ac_tr_func}\${ac_eB}${ac_tr_func}\${ac_eC}1\${ac_eD}
  1356.   "
  1357.   }
  1358. ***************
  1359. *** 557,562 ****
  1360.   done
  1361.   
  1362. ! prog='/* Ultrix mips cc rejects this.  */
  1363.   typedef int charset[2]; const charset x;
  1364.   /* SunOS 4.1.1 cc rejects this.  */
  1365. --- 795,799 ----
  1366.   done
  1367.   
  1368. ! ac_prog='/* Ultrix mips cc rejects this.  */
  1369.   typedef int charset[2]; const charset x;
  1370.   /* SunOS 4.1.1 cc rejects this.  */
  1371. ***************
  1372. *** 596,607 ****
  1373.     const int foo = 10;
  1374.   }'
  1375. ! echo checking for lack of working const
  1376. ! cat > conftest.c <<EOF
  1377.   #include "confdefs.h"
  1378.   
  1379. ! int main() { exit(0); }
  1380. ! int t() { $prog }
  1381.   EOF
  1382. ! if eval $compile; then
  1383.     :
  1384.   else
  1385. --- 833,844 ----
  1386.     const int foo = 10;
  1387.   }'
  1388. ! test -n "$silent" || echo "checking for lack of working const"
  1389. ! cat > conftest.${ac_ext} <<EOF
  1390.   #include "confdefs.h"
  1391.   
  1392. ! int main() { return 0; }
  1393. ! int t() { $ac_prog; return 0; }
  1394.   EOF
  1395. ! if eval $ac_compile; then
  1396.     :
  1397.   else
  1398. ***************
  1399. *** 611,644 ****
  1400.   test -n "$verbose" && \
  1401.   echo "    defining" const to be empty
  1402. ! echo "#define" const  >> confdefs.h
  1403.   DEFS="$DEFS -Dconst="
  1404. ! SEDDEFS="${SEDDEFS}\${SEDdA}const\${SEDdB}const\${SEDdC}\${SEDdD}
  1405. ! \${SEDuA}const\${SEDuB}const\${SEDuC}\${SEDuD}
  1406. ! \${SEDeA}const\${SEDeB}const\${SEDeC}\${SEDeD}
  1407.   "
  1408.   }
  1409.   
  1410.   fi
  1411.   rm -f conftest*
  1412.   
  1413.   
  1414.   
  1415.   
  1416.   
  1417. ! for p in 'bison -y' byacc
  1418.   do
  1419.   if test -z "$YACC"; then
  1420. !   # Extract the first word of `$p', so it can be a program name with args.
  1421. !   set dummy $p; word=$2
  1422. !   echo checking for $word
  1423. !   IFS="${IFS=     }"; saveifs="$IFS"; IFS="${IFS}:"
  1424. !   for dir in $PATH; do
  1425. !     test -z "$dir" && dir=.
  1426. !     if test -f $dir/$word; then
  1427. !       YACC="$p"
  1428.         break
  1429.       fi
  1430.     done
  1431. !   IFS="$saveifs"
  1432.   fi
  1433.   
  1434. --- 848,989 ----
  1435.   test -n "$verbose" && \
  1436.   echo "    defining" const to be empty
  1437. ! echo "#define" const "" >> confdefs.h
  1438.   DEFS="$DEFS -Dconst="
  1439. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}const\${ac_dB}const\${ac_dC}\${ac_dD}
  1440. ! \${ac_uA}const\${ac_uB}const\${ac_uC}\${ac_uD}
  1441. ! \${ac_eA}const\${ac_eB}const\${ac_eC}\${ac_eD}
  1442. ! "
  1443. ! }
  1444. ! fi
  1445. ! rm -f conftest*
  1446. ! # GNU libc predefines `program_invocation_name'.
  1447. ! test -n "$silent" || echo "checking for program_invocation_name"
  1448. ! cat > conftest.${ac_ext} <<EOF
  1449. ! #include "confdefs.h"
  1450. ! int main() { return 0; }
  1451. ! int t() { main() { program_invocation_name = "hello"; }; return 0; }
  1452. ! EOF
  1453. ! if eval $ac_compile; then
  1454. !   rm -rf conftest*
  1455. !   
  1456. ! {
  1457. ! test -n "$verbose" && \
  1458. ! echo "    defining HAVE_PROGRAM_INVOCATION_NAME"
  1459. ! echo "#define" HAVE_PROGRAM_INVOCATION_NAME "1" >> confdefs.h
  1460. ! DEFS="$DEFS -DHAVE_PROGRAM_INVOCATION_NAME=1"
  1461. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_PROGRAM_INVOCATION_NAME\${ac_dB}HAVE_PROGRAM_INVOCATION_NAME\${ac_dC}1\${ac_dD}
  1462. ! \${ac_uA}HAVE_PROGRAM_INVOCATION_NAME\${ac_uB}HAVE_PROGRAM_INVOCATION_NAME\${ac_uC}1\${ac_uD}
  1463. ! \${ac_eA}HAVE_PROGRAM_INVOCATION_NAME\${ac_eB}HAVE_PROGRAM_INVOCATION_NAME\${ac_eC}1\${ac_eD}
  1464.   "
  1465.   }
  1466.   
  1467.   fi
  1468.   rm -f conftest*
  1469.   
  1470.   
  1471. + # Some BSD systems do malloc/free's on the environment.
  1472. + # This test program is due to Mike Hibler <mike@cs.utah.edu>.
  1473. + test -n "$silent" || echo "checking for smart putenv"
  1474. + cat > conftest.${ac_ext} <<EOF
  1475. + #include "confdefs.h"
  1476. + int main() { return 0; }
  1477. + int t() { 
  1478. + #define VAR    "YOW_VAR"
  1479. + #define STRING1 "GabbaGabbaHey"
  1480. + #define STRING2 "Yow!!"        /* should be shorter than STRING1 */
  1481. + extern char *getenv (); /* in case char* and int don't mix gracefully */
  1482. + main ()
  1483. + {
  1484. +   char *str1, *rstr1, *str2, *rstr2;
  1485. +   str1 = getenv (VAR);
  1486. +   if (str1)
  1487. +     exit (1);
  1488. +   str1 = malloc (strlen (VAR) + 1 + strlen (STRING1) + 1);
  1489. +   if (str1 == 0)
  1490. +     exit (2);
  1491. +   strcpy (str1, VAR);
  1492. +   strcat (str1, "=");
  1493. +   strcat (str1, STRING1);
  1494. +   if (putenv (str1) < 0)
  1495. +     exit (3);
  1496. +   rstr1 = getenv (VAR);
  1497. +   if (rstr1 == 0)
  1498. +     exit (4);
  1499. +   rstr1 -= strlen (VAR) + 1;
  1500. +   if (strncmp (rstr1, VAR, strlen (VAR)))
  1501. +     exit (5);
  1502. +   str2 = malloc (strlen (VAR) + 1 + strlen (STRING2) + 1);
  1503. +   if (str2 == 0 || str1 == str2)
  1504. +     exit (6);
  1505. +   strcpy (str2, VAR);
  1506. +   strcat (str2, "=");
  1507. +   strcat (str2, STRING2);
  1508. +   if (putenv (str2) < 0)
  1509. +     exit (7);
  1510. +   rstr2 = getenv (VAR);
  1511. +   if (rstr2 == 0)
  1512. +     exit (8);
  1513. +   rstr2 -= strlen (VAR) + 1;
  1514. + #if 0
  1515. +   printf ("rstr1=0x%x, rstr2=0x%x\n", rstr1, rstr2);
  1516. +   /*
  1517. +    * If string from first call was reused for the second call,
  1518. +    * you had better not do a free on the first string!
  1519. +    */
  1520. +   if (rstr1 == rstr2)
  1521. +           printf ("#define\tSMART_PUTENV\n");
  1522. +   else
  1523. +           printf ("#undef\tSMART_PUTENV\n");
  1524. + #endif
  1525. +   exit (rstr1 == rstr2 ? 0 : 1);
  1526. + }
  1527. + ; return 0; }
  1528. + EOF
  1529. + if eval $ac_compile; then
  1530. +   rm -rf conftest*
  1531. +   
  1532. + {
  1533. + test -n "$verbose" && \
  1534. + echo "    defining "
  1535. + echo "#define"  "1" >> confdefs.h
  1536. + DEFS="$DEFS -D=1"
  1537. + ac_sed_defs="${ac_sed_defs}\${ac_dA}\${ac_dB}\${ac_dC}1\${ac_dD}
  1538. + \${ac_uA}\${ac_uB}\${ac_uC}1\${ac_uD}
  1539. + \${ac_eA}\${ac_eB}\${ac_eC}1\${ac_eD}
  1540. + "
  1541. + }
  1542. +  (SMART_PUTENV)
  1543. + fi
  1544. + rm -f conftest*
  1545.   
  1546.   
  1547.   
  1548. ! for ac_prog in 'bison -y' byacc
  1549.   do
  1550.   if test -z "$YACC"; then
  1551. !   # Extract the first word of `$ac_prog', so it can be a program name with args.
  1552. !   set ac_dummy $ac_prog; ac_word=$2
  1553. !   test -n "$silent" || echo "checking for $ac_word"
  1554. !   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1555. !   for ac_dir in $PATH; do
  1556. !     test -z "$ac_dir" && ac_dir=.
  1557. !     if test -f $ac_dir/$ac_word; then
  1558. !       YACC="$ac_prog"
  1559.         break
  1560.       fi
  1561.     done
  1562. !   IFS="$ac_save_ifs"
  1563.   fi
  1564.   
  1565. ***************
  1566. *** 651,665 ****
  1567.   if test -z "$LEX"; then
  1568.     # Extract the first word of `flex', so it can be a program name with args.
  1569. !   set dummy flex; word=$2
  1570. !   echo checking for $word
  1571. !   IFS="${IFS=     }"; saveifs="$IFS"; IFS="${IFS}:"
  1572. !   for dir in $PATH; do
  1573. !     test -z "$dir" && dir=.
  1574. !     if test -f $dir/$word; then
  1575.         LEX="flex"
  1576.         break
  1577.       fi
  1578.     done
  1579. !   IFS="$saveifs"
  1580.   fi
  1581.   test -z "$LEX" && LEX="lex"
  1582. --- 996,1010 ----
  1583.   if test -z "$LEX"; then
  1584.     # Extract the first word of `flex', so it can be a program name with args.
  1585. !   set ac_dummy flex; ac_word=$2
  1586. !   test -n "$silent" || echo "checking for $ac_word"
  1587. !   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1588. !   for ac_dir in $PATH; do
  1589. !     test -z "$ac_dir" && ac_dir=.
  1590. !     if test -f $ac_dir/$ac_word; then
  1591.         LEX="flex"
  1592.         break
  1593.       fi
  1594.     done
  1595. !   IFS="$ac_save_ifs"
  1596.   fi
  1597.   test -z "$LEX" && LEX="lex"
  1598. ***************
  1599. *** 669,690 ****
  1600.   then
  1601.     case "$LEX" in
  1602. !   flex*) LIBS_save="${LIBS}"
  1603.   LIBS="${LIBS} -lfl"
  1604. ! have_lib=""
  1605. ! echo checking for -lfl
  1606. ! cat > conftest.c <<EOF
  1607.   #include "confdefs.h"
  1608.   
  1609. ! int main() { exit(0); }
  1610. ! int t() { main(); }
  1611.   EOF
  1612. ! if eval $compile; then
  1613.     rm -rf conftest*
  1614. !   have_lib="1"
  1615.   
  1616.   fi
  1617.   rm -f conftest*
  1618. ! LIBS="${LIBS_save}"
  1619. ! if test -n "${have_lib}"; then
  1620.      :; LEXLIB="-lfl"
  1621.   else
  1622. --- 1014,1035 ----
  1623.   then
  1624.     case "$LEX" in
  1625. !   flex*) ac_save_LIBS="${LIBS}"
  1626.   LIBS="${LIBS} -lfl"
  1627. ! ac_have_lib=""
  1628. ! test -n "$silent" || echo "checking for -lfl"
  1629. ! cat > conftest.${ac_ext} <<EOF
  1630.   #include "confdefs.h"
  1631.   
  1632. ! int main() { return 0; }
  1633. ! int t() { main();; return 0; }
  1634.   EOF
  1635. ! if eval $ac_compile; then
  1636.     rm -rf conftest*
  1637. !   ac_have_lib="1"
  1638.   
  1639.   fi
  1640.   rm -f conftest*
  1641. ! LIBS="${ac_save_LIBS}"
  1642. ! if test -n "${ac_have_lib}"; then
  1643.      :; LEXLIB="-lfl"
  1644.   else
  1645. ***************
  1646. *** 695,700 ****
  1647.     esac
  1648.   fi
  1649.   
  1650. ! echo checking for ln -s
  1651.   rm -f conftestdata
  1652.   if ln -s X conftestdata 2>/dev/null
  1653. --- 1040,1046 ----
  1654.     esac
  1655.   fi
  1656. + test -n "$verbose" && echo "    setting LEXLIB to $LEXLIB"
  1657.   
  1658. ! test -n "$silent" || echo "checking for ln -s"
  1659.   rm -f conftestdata
  1660.   if ln -s X conftestdata 2>/dev/null
  1661. ***************
  1662. *** 708,713 ****
  1663.   
  1664.   
  1665. ! echo checking for return type of signal handlers
  1666. ! cat > conftest.c <<EOF
  1667.   #include "confdefs.h"
  1668.   #include <sys/types.h>
  1669. --- 1054,1059 ----
  1670.   
  1671.   
  1672. ! test -n "$silent" || echo "checking for return type of signal handlers"
  1673. ! cat > conftest.${ac_ext} <<EOF
  1674.   #include "confdefs.h"
  1675.   #include <sys/types.h>
  1676. ***************
  1677. *** 717,734 ****
  1678.   #endif
  1679.   extern void (*signal ()) ();
  1680. ! int main() { exit(0); }
  1681. ! int t() { int i; }
  1682.   EOF
  1683. ! if eval $compile; then
  1684.     rm -rf conftest*
  1685.     
  1686.   {
  1687.   test -n "$verbose" && \
  1688. ! echo "    defining" RETSIGTYPE to be void
  1689. ! echo "#define" RETSIGTYPE void >> confdefs.h
  1690.   DEFS="$DEFS -DRETSIGTYPE=void"
  1691. ! SEDDEFS="${SEDDEFS}\${SEDdA}RETSIGTYPE\${SEDdB}RETSIGTYPE\${SEDdC}void\${SEDdD}
  1692. ! \${SEDuA}RETSIGTYPE\${SEDuB}RETSIGTYPE\${SEDuC}void\${SEDuD}
  1693. ! \${SEDeA}RETSIGTYPE\${SEDeB}RETSIGTYPE\${SEDeC}void\${SEDeD}
  1694.   "
  1695.   }
  1696. --- 1063,1080 ----
  1697.   #endif
  1698.   extern void (*signal ()) ();
  1699. ! int main() { return 0; }
  1700. ! int t() { int i;; return 0; }
  1701.   EOF
  1702. ! if eval $ac_compile; then
  1703.     rm -rf conftest*
  1704.     
  1705.   {
  1706.   test -n "$verbose" && \
  1707. ! echo "    defining" RETSIGTYPE to be "void"
  1708. ! echo "#define" RETSIGTYPE "void" >> confdefs.h
  1709.   DEFS="$DEFS -DRETSIGTYPE=void"
  1710. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}RETSIGTYPE\${ac_dB}RETSIGTYPE\${ac_dC}void\${ac_dD}
  1711. ! \${ac_uA}RETSIGTYPE\${ac_uB}RETSIGTYPE\${ac_uC}void\${ac_uD}
  1712. ! \${ac_eA}RETSIGTYPE\${ac_eB}RETSIGTYPE\${ac_eC}void\${ac_eD}
  1713.   "
  1714.   }
  1715. ***************
  1716. *** 740,749 ****
  1717.   {
  1718.   test -n "$verbose" && \
  1719. ! echo "    defining" RETSIGTYPE to be int
  1720. ! echo "#define" RETSIGTYPE int >> confdefs.h
  1721.   DEFS="$DEFS -DRETSIGTYPE=int"
  1722. ! SEDDEFS="${SEDDEFS}\${SEDdA}RETSIGTYPE\${SEDdB}RETSIGTYPE\${SEDdC}int\${SEDdD}
  1723. ! \${SEDuA}RETSIGTYPE\${SEDuB}RETSIGTYPE\${SEDuC}int\${SEDuD}
  1724. ! \${SEDeA}RETSIGTYPE\${SEDeB}RETSIGTYPE\${SEDeC}int\${SEDeD}
  1725.   "
  1726.   }
  1727. --- 1086,1095 ----
  1728.   {
  1729.   test -n "$verbose" && \
  1730. ! echo "    defining" RETSIGTYPE to be "int"
  1731. ! echo "#define" RETSIGTYPE "int" >> confdefs.h
  1732.   DEFS="$DEFS -DRETSIGTYPE=int"
  1733. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}RETSIGTYPE\${ac_dB}RETSIGTYPE\${ac_dC}int\${ac_dD}
  1734. ! \${ac_uA}RETSIGTYPE\${ac_uB}RETSIGTYPE\${ac_uC}int\${ac_uD}
  1735. ! \${ac_eA}RETSIGTYPE\${ac_eB}RETSIGTYPE\${ac_eC}int\${ac_eD}
  1736.   "
  1737.   }
  1738. ***************
  1739. *** 754,759 ****
  1740.   
  1741.   
  1742. ! echo checking for unsigned characters
  1743. ! cat > conftest.c <<EOF
  1744.   #include "confdefs.h"
  1745.   /* volatile prevents gcc2 from optimizing the test away on sparcs.  */
  1746. --- 1100,1105 ----
  1747.   
  1748.   
  1749. ! test -n "$silent" || echo "checking for unsigned characters"
  1750. ! cat > conftest.${ac_ext} <<EOF
  1751.   #include "confdefs.h"
  1752.   /* volatile prevents gcc2 from optimizing the test away on sparcs.  */
  1753. ***************
  1754. *** 769,773 ****
  1755.   }
  1756.   EOF
  1757. ! eval $compile
  1758.   if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1759.     
  1760. --- 1115,1119 ----
  1761.   }
  1762.   EOF
  1763. ! eval $ac_compile
  1764.   if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1765.     
  1766. ***************
  1767. *** 775,783 ****
  1768.   test -n "$verbose" && \
  1769.   echo "    defining __CHAR_UNSIGNED__"
  1770. ! echo "#define" __CHAR_UNSIGNED__ 1 >> confdefs.h
  1771.   DEFS="$DEFS -D__CHAR_UNSIGNED__=1"
  1772. ! SEDDEFS="${SEDDEFS}\${SEDdA}__CHAR_UNSIGNED__\${SEDdB}__CHAR_UNSIGNED__\${SEDdC}1\${SEDdD}
  1773. ! \${SEDuA}__CHAR_UNSIGNED__\${SEDuB}__CHAR_UNSIGNED__\${SEDuC}1\${SEDuD}
  1774. ! \${SEDeA}__CHAR_UNSIGNED__\${SEDeB}__CHAR_UNSIGNED__\${SEDeC}1\${SEDeD}
  1775.   "
  1776.   }
  1777. --- 1121,1129 ----
  1778.   test -n "$verbose" && \
  1779.   echo "    defining __CHAR_UNSIGNED__"
  1780. ! echo "#define" __CHAR_UNSIGNED__ "1" >> confdefs.h
  1781.   DEFS="$DEFS -D__CHAR_UNSIGNED__=1"
  1782. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}__CHAR_UNSIGNED__\${ac_dB}__CHAR_UNSIGNED__\${ac_dC}1\${ac_dD}
  1783. ! \${ac_uA}__CHAR_UNSIGNED__\${ac_uB}__CHAR_UNSIGNED__\${ac_uC}1\${ac_uD}
  1784. ! \${ac_eA}__CHAR_UNSIGNED__\${ac_eB}__CHAR_UNSIGNED__\${ac_eC}1\${ac_eD}
  1785.   "
  1786.   }
  1787. ***************
  1788. *** 787,796 ****
  1789.   rm -fr conftest*
  1790.   
  1791. ! echo checking for 64-bit long ints
  1792. ! cat > conftest.c <<EOF
  1793.   #include "confdefs.h"
  1794.   main() { exit(sizeof(long int) != 8); }
  1795.   EOF
  1796. ! eval $compile
  1797.   if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1798.     
  1799. --- 1133,1143 ----
  1800.   rm -fr conftest*
  1801.   
  1802. ! test -n "$silent" || echo "checking for 64-bit long ints"
  1803. ! cat > conftest.${ac_ext} <<EOF
  1804.   #include "confdefs.h"
  1805.   main() { exit(sizeof(long int) != 8); }
  1806.   EOF
  1807. ! eval $ac_compile
  1808.   if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1809.     
  1810. ***************
  1811. *** 798,806 ****
  1812.   test -n "$verbose" && \
  1813.   echo "    defining LONG_64_BITS"
  1814. ! echo "#define" LONG_64_BITS 1 >> confdefs.h
  1815.   DEFS="$DEFS -DLONG_64_BITS=1"
  1816. ! SEDDEFS="${SEDDEFS}\${SEDdA}LONG_64_BITS\${SEDdB}LONG_64_BITS\${SEDdC}1\${SEDdD}
  1817. ! \${SEDuA}LONG_64_BITS\${SEDuB}LONG_64_BITS\${SEDuC}1\${SEDuD}
  1818. ! \${SEDeA}LONG_64_BITS\${SEDeB}LONG_64_BITS\${SEDeC}1\${SEDeD}
  1819.   "
  1820.   }
  1821. --- 1145,1153 ----
  1822.   test -n "$verbose" && \
  1823.   echo "    defining LONG_64_BITS"
  1824. ! echo "#define" LONG_64_BITS "1" >> confdefs.h
  1825.   DEFS="$DEFS -DLONG_64_BITS=1"
  1826. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}LONG_64_BITS\${ac_dB}LONG_64_BITS\${ac_dC}1\${ac_dD}
  1827. ! \${ac_uA}LONG_64_BITS\${ac_uB}LONG_64_BITS\${ac_uC}1\${ac_uD}
  1828. ! \${ac_eA}LONG_64_BITS\${ac_eB}LONG_64_BITS\${ac_eC}1\${ac_eD}
  1829.   "
  1830.   }
  1831. ***************
  1832. *** 810,815 ****
  1833.   rm -fr conftest*
  1834.   
  1835. ! echo checking byte ordering
  1836. ! cat > conftest.c <<EOF
  1837.   #include "confdefs.h"
  1838.   main () {
  1839. --- 1157,1162 ----
  1840.   rm -fr conftest*
  1841.   
  1842. ! test -n "$silent" || echo "checking byte ordering"
  1843. ! cat > conftest.${ac_ext} <<EOF
  1844.   #include "confdefs.h"
  1845.   main () {
  1846. ***************
  1847. *** 824,828 ****
  1848.   }
  1849.   EOF
  1850. ! eval $compile
  1851.   if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1852.     :
  1853. --- 1171,1175 ----
  1854.   }
  1855.   EOF
  1856. ! eval $ac_compile
  1857.   if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1858.     :
  1859. ***************
  1860. *** 832,840 ****
  1861.   test -n "$verbose" && \
  1862.   echo "    defining WORDS_BIGENDIAN"
  1863. ! echo "#define" WORDS_BIGENDIAN 1 >> confdefs.h
  1864.   DEFS="$DEFS -DWORDS_BIGENDIAN=1"
  1865. ! SEDDEFS="${SEDDEFS}\${SEDdA}WORDS_BIGENDIAN\${SEDdB}WORDS_BIGENDIAN\${SEDdC}1\${SEDdD}
  1866. ! \${SEDuA}WORDS_BIGENDIAN\${SEDuB}WORDS_BIGENDIAN\${SEDuC}1\${SEDuD}
  1867. ! \${SEDeA}WORDS_BIGENDIAN\${SEDeB}WORDS_BIGENDIAN\${SEDeC}1\${SEDeD}
  1868.   "
  1869.   }
  1870. --- 1179,1187 ----
  1871.   test -n "$verbose" && \
  1872.   echo "    defining WORDS_BIGENDIAN"
  1873. ! echo "#define" WORDS_BIGENDIAN "1" >> confdefs.h
  1874.   DEFS="$DEFS -DWORDS_BIGENDIAN=1"
  1875. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}WORDS_BIGENDIAN\${ac_dB}WORDS_BIGENDIAN\${ac_dC}1\${ac_dD}
  1876. ! \${ac_uA}WORDS_BIGENDIAN\${ac_uB}WORDS_BIGENDIAN\${ac_uC}1\${ac_uD}
  1877. ! \${ac_eA}WORDS_BIGENDIAN\${ac_eB}WORDS_BIGENDIAN\${ac_eC}1\${ac_eD}
  1878.   "
  1879.   }
  1880. ***************
  1881. *** 844,881 ****
  1882.   
  1883.   
  1884. ! echo checking how to declare yytext
  1885. ! # Figure out what yytext is by creating a minimal parser and
  1886. ! # examining the (preprocessed, in case macros are used) output.
  1887. ! if test "z${DECLARE_YYTEXT}" = "z"; then
  1888.     echo '%%
  1889.   %%' | ${LEX}
  1890. !   if test -f lex.yy.c; then
  1891. !     LEX_OUTPUT_ROOT=lex.yy
  1892. !   elif test -f lexyy.c; then
  1893. !     LEX_OUTPUT_ROOT=lexyy
  1894. !   else
  1895. !     # Don't know what to do here.
  1896. !     echo "Can't find output from $LEX; assuming lex.yy.c." 1>&2
  1897. !     LEX_OUTPUT_ROOT=lex.yy
  1898. !   fi
  1899. !   DECLARE_YYTEXT=`eval ${CPP} "${LEX_OUTPUT_ROOT}.c" |
  1900. !     sed -n '/extern.*yytext[^a-zA-Z0-9_]/s/^.*extern/extern/p'`
  1901. !   rm -f "${LEX_OUTPUT_ROOT}.c"
  1902. ! fi
  1903.   {
  1904.   test -n "$verbose" && \
  1905. ! echo "    defining" DECLARE_YYTEXT to be $DECLARE_YYTEXT
  1906. ! echo "#define" DECLARE_YYTEXT $DECLARE_YYTEXT >> confdefs.h
  1907. ! DEFS="$DEFS -DDECLARE_YYTEXT=$DECLARE_YYTEXT"
  1908. ! SEDDEFS="${SEDDEFS}\${SEDdA}DECLARE_YYTEXT\${SEDdB}DECLARE_YYTEXT\${SEDdC}$DECLARE_YYTEXT\${SEDdD}
  1909. ! \${SEDuA}DECLARE_YYTEXT\${SEDuB}DECLARE_YYTEXT\${SEDuC}$DECLARE_YYTEXT\${SEDuD}
  1910. ! \${SEDeA}DECLARE_YYTEXT\${SEDeB}DECLARE_YYTEXT\${SEDeC}$DECLARE_YYTEXT\${SEDeD}
  1911.   "
  1912.   }
  1913.   
  1914.   
  1915.   echo checking for window system libraries
  1916. ! cat > conftest.c <<EOF
  1917.   #include "confdefs.h"
  1918.   #include "$srcdir/lib/c-auto.h.in"
  1919. --- 1191,1244 ----
  1920.   
  1921.   
  1922. ! test -n "$silent" || echo "checking for yytext declaration"
  1923. ! # POSIX says lex can declare yytext either as a pointer or an array; the
  1924. ! # default is implementation-dependent. Figure out which it is, since
  1925. ! # not all implementations provide the %pointer and %array declarations.
  1926. ! #
  1927. ! # The minimal lex program is just a single line: %%.  But some broken lexes
  1928. ! # (Solaris, I think it was) want two %% lines, so accommodate them.
  1929.     echo '%%
  1930.   %%' | ${LEX}
  1931. ! if test -f lex.yy.c; then
  1932. !   LEX_OUTPUT_ROOT=lex.yy
  1933. ! elif test -f lexyy.c; then
  1934. !   LEX_OUTPUT_ROOT=lexyy
  1935. ! else
  1936. !   # Don't know what to do here.
  1937. !   echo "configure: cannot find output from $LEX" >&2; exit 1
  1938. !   LEX_OUTPUT_ROOT=
  1939. ! fi
  1940. ! if test -n "$LEX_OUTPUT_ROOT"; then
  1941. !   echo 'extern char *yytext; main () { exit (0); }' >>$LEX_OUTPUT_ROOT.c
  1942. !   ac_save_LIBS="$LIBS"
  1943. !   LIBS="$LIBS $LEXLIB"
  1944. !   cat > conftest.${ac_ext} <<EOF
  1945. ! #include "confdefs.h"
  1946. ! `cat $LEX_OUTPUT_ROOT.c`
  1947. ! EOF
  1948. ! eval $ac_compile
  1949. ! if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1950. !   
  1951.   {
  1952.   test -n "$verbose" && \
  1953. ! echo "    defining YYTEXT_POINTER"
  1954. ! echo "#define" YYTEXT_POINTER "1" >> confdefs.h
  1955. ! DEFS="$DEFS -DYYTEXT_POINTER=1"
  1956. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}YYTEXT_POINTER\${ac_dB}YYTEXT_POINTER\${ac_dC}1\${ac_dD}
  1957. ! \${ac_uA}YYTEXT_POINTER\${ac_uB}YYTEXT_POINTER\${ac_uC}1\${ac_uD}
  1958. ! \${ac_eA}YYTEXT_POINTER\${ac_eB}YYTEXT_POINTER\${ac_eC}1\${ac_eD}
  1959.   "
  1960.   }
  1961.   
  1962.   
  1963. + fi
  1964. + rm -fr conftest*
  1965. +   LIBS="$ac_save_LIBS"
  1966. +   rm -f "${LEX_OUTPUT_ROOT}.c"
  1967. + fi
  1968.   echo checking for window system libraries
  1969. ! cat > conftest.${ac_ext} <<EOF
  1970.   #include "confdefs.h"
  1971.   #include "$srcdir/lib/c-auto.h.in"
  1972. ***************
  1973. *** 885,890 ****
  1974.   
  1975.   EOF
  1976. ! err=`eval "($CPP conftest.c >/dev/null) 2>&1"`
  1977. ! if test -z "$err"; then
  1978.     rm -rf conftest*
  1979.     SUNWIN=t
  1980. --- 1248,1255 ----
  1981.   
  1982.   EOF
  1983. ! # Some shells (Coherent) do redirections in the wrong order, so need
  1984. ! # the parens.
  1985. ! ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  1986. ! if test -z "$ac_err"; then
  1987.     rm -rf conftest*
  1988.     SUNWIN=t
  1989. ***************
  1990. *** 893,897 ****
  1991.   fi
  1992.   rm -f conftest*
  1993. ! cat > conftest.c <<EOF
  1994.   #include "confdefs.h"
  1995.   #include "$srcdir/lib/c-auto.h.in"
  1996. --- 1258,1262 ----
  1997.   fi
  1998.   rm -f conftest*
  1999. ! cat > conftest.${ac_ext} <<EOF
  2000.   #include "confdefs.h"
  2001.   #include "$srcdir/lib/c-auto.h.in"
  2002. ***************
  2003. *** 901,906 ****
  2004.   
  2005.   EOF
  2006. ! err=`eval "($CPP conftest.c >/dev/null) 2>&1"`
  2007. ! if test -z "$err"; then
  2008.     rm -rf conftest*
  2009.     XVIEWWIN=t
  2010. --- 1266,1273 ----
  2011.   
  2012.   EOF
  2013. ! # Some shells (Coherent) do redirections in the wrong order, so need
  2014. ! # the parens.
  2015. ! ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  2016. ! if test -z "$ac_err"; then
  2017.     rm -rf conftest*
  2018.     XVIEWWIN=t
  2019. ***************
  2020. *** 909,913 ****
  2021.   fi
  2022.   rm -f conftest*
  2023. ! cat > conftest.c <<EOF
  2024.   #include "confdefs.h"
  2025.   #include "$srcdir/lib/c-auto.h.in"
  2026. --- 1276,1280 ----
  2027.   fi
  2028.   rm -f conftest*
  2029. ! cat > conftest.${ac_ext} <<EOF
  2030.   #include "confdefs.h"
  2031.   #include "$srcdir/lib/c-auto.h.in"
  2032. ***************
  2033. *** 917,922 ****
  2034.   
  2035.   EOF
  2036. ! err=`eval "($CPP conftest.c >/dev/null) 2>&1"`
  2037. ! if test -z "$err"; then
  2038.     rm -rf conftest*
  2039.     X11WIN=t
  2040. --- 1284,1291 ----
  2041.   
  2042.   EOF
  2043. ! # Some shells (Coherent) do redirections in the wrong order, so need
  2044. ! # the parens.
  2045. ! ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  2046. ! if test -z "$ac_err"; then
  2047.     rm -rf conftest*
  2048.     X11WIN=t
  2049. ***************
  2050. *** 925,929 ****
  2051.   fi
  2052.   rm -f conftest*
  2053. ! cat > conftest.c <<EOF
  2054.   #include "confdefs.h"
  2055.   #include "$srcdir/lib/c-auto.h.in"
  2056. --- 1294,1298 ----
  2057.   fi
  2058.   rm -f conftest*
  2059. ! cat > conftest.${ac_ext} <<EOF
  2060.   #include "confdefs.h"
  2061.   #include "$srcdir/lib/c-auto.h.in"
  2062. ***************
  2063. *** 933,938 ****
  2064.   
  2065.   EOF
  2066. ! err=`eval "($CPP conftest.c >/dev/null) 2>&1"`
  2067. ! if test -z "$err"; then
  2068.     rm -rf conftest*
  2069.     X10WIN=t
  2070. --- 1302,1309 ----
  2071.   
  2072.   EOF
  2073. ! # Some shells (Coherent) do redirections in the wrong order, so need
  2074. ! # the parens.
  2075. ! ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  2076. ! if test -z "$ac_err"; then
  2077.     rm -rf conftest*
  2078.     X10WIN=t
  2079. ***************
  2080. *** 948,974 ****
  2081.     # If we find X, set shell vars x_includes and x_libraries to the paths.
  2082.   no_x=true
  2083. ! echo checking for X include and library files with xmkmf
  2084.   rm -fr conftestdir
  2085.   if mkdir conftestdir; then
  2086.     cd conftestdir
  2087. !   cat > Imakefile <<\EOF
  2088.   acfindx:
  2089. !     @echo "im_incroot=$(INCROOT); im_usrlibdir=$(USRLIBDIR); im_libdir=$(LIBDIR)"
  2090.   EOF
  2091.     if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
  2092.       no_x=
  2093.       # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2094. !     eval `make acfindx | grep -v make`
  2095.       # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  2096. !     if test ! -f $im_usrlibdir/libX11.a && test -f $im_libdir/libX11.a; then
  2097. !       im_usrlibdir=$im_libdir
  2098.       fi
  2099. !     case "$im_incroot" in
  2100.       /usr/include) ;;
  2101. !     *) x_includes="$im_incroot" ;;
  2102.       esac
  2103. !     case "$im_usrlibdir" in
  2104.       /usr/lib | /lib) ;;
  2105. !     *) x_libraries="$im_usrlibdir" ;;
  2106.       esac
  2107.     fi
  2108. --- 1319,1348 ----
  2109.     # If we find X, set shell vars x_includes and x_libraries to the paths.
  2110.   no_x=true
  2111. ! if test "x$with_x" != xno; then
  2112. ! test -n "$silent" || echo "checking for X include and library files with xmkmf"
  2113.   rm -fr conftestdir
  2114.   if mkdir conftestdir; then
  2115.     cd conftestdir
  2116. !   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
  2117. !   cat > Imakefile <<'EOF'
  2118.   acfindx:
  2119. !     @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
  2120.   EOF
  2121.     if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
  2122.       no_x=
  2123.       # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2124. !     eval `make acfindx 2>/dev/null | grep -v make`
  2125.       # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  2126. !     if test ! -f $ac_im_usrlibdir/libX11.a && test -f $ac_im_libdir/libX11.a
  2127. !     then
  2128. !       ac_im_usrlibdir=$ac_im_libdir
  2129.       fi
  2130. !     case "$ac_im_incroot" in
  2131.       /usr/include) ;;
  2132. !     *) test -z "$x_includes" && x_includes="$ac_im_incroot" ;;
  2133.       esac
  2134. !     case "$ac_im_usrlibdir" in
  2135.       /usr/lib | /lib) ;;
  2136. !     *) test -z "$x_libraries" && x_libraries="$ac_im_usrlibdir" ;;
  2137.       esac
  2138.     fi
  2139. ***************
  2140. *** 977,988 ****
  2141.   fi
  2142.   
  2143. ! if test -z "$im_usrlibdir"; then
  2144. ! echo checking for X include and library files directly
  2145. ! cat > conftest.c <<EOF
  2146. ! #include "confdefs.h"
  2147. ! #include <X11/Intrinsic.h>
  2148. ! EOF
  2149. ! err=`eval "($CPP conftest.c >/dev/null) 2>&1"`
  2150. ! if test -z "$err"; then
  2151.     rm -rf conftest*
  2152.     no_x=
  2153. --- 1351,1370 ----
  2154.   fi
  2155.   
  2156. ! if test -z "$ac_im_usrlibdir"; then
  2157. ! test -n "$silent" || echo "checking for X include and library files directly"
  2158. ! if test ".$x_direct_test_library" = . ; then
  2159. !    x_direct_test_library='Xt'
  2160. ! fi
  2161. ! if test ".$x_direct_test_include" = . ; then
  2162. !    x_direct_test_include='X11/Intrinsic.h'
  2163. ! fi
  2164. ! cat > conftest.${ac_ext} <<EOF
  2165. ! #include "confdefs.h"
  2166. ! #include <$x_direct_test_include>
  2167. ! EOF
  2168. ! # Some shells (Coherent) do redirections in the wrong order, so need
  2169. ! # the parens.
  2170. ! ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  2171. ! if test -z "$ac_err"; then
  2172.     rm -rf conftest*
  2173.     no_x=
  2174. ***************
  2175. *** 990,1009 ****
  2176.   else
  2177.     rm -rf conftest*
  2178. !   for dir in \
  2179. !     /usr/local/include \
  2180. !     /usr/unsupported/include \
  2181. !     /usr/x386/include \
  2182. !     /usr/local/x11r5/include \
  2183. !     /usr/include/X11R5 \
  2184. !     /usr/include/X11R4 \
  2185. !     /usr/X11R5/include \
  2186. !     /usr/X11/include \
  2187. !     /usr/openwin/include \
  2188.       /usr/openwin/share/include \
  2189. -     /usr/lpp/Xamples/include \
  2190.       ; \
  2191.     do
  2192. !     if test -r $dir/X11/Intrinsic.h; then
  2193. !       x_includes=$dir; no_x=
  2194.         break
  2195.       fi
  2196. --- 1372,1415 ----
  2197.   else
  2198.     rm -rf conftest*
  2199. !   for ac_dir in               \
  2200. !     /usr/X11R6/include        \
  2201. !     /usr/X11R5/include        \
  2202. !     /usr/X11R4/include        \
  2203. !                               \
  2204. !     /usr/include/X11R6        \
  2205. !     /usr/include/X11R5        \
  2206. !     /usr/include/X11R4        \
  2207. !                               \
  2208. !     /usr/local/X11R6/include  \
  2209. !     /usr/local/X11R5/include  \
  2210. !     /usr/local/X11R4/include  \
  2211. !                               \
  2212. !     /usr/local/include/X11R6  \
  2213. !     /usr/local/include/X11R5  \
  2214. !     /usr/local/include/X11R4  \
  2215. !                               \
  2216. !     /usr/X11/include          \
  2217. !     /usr/include/X11          \
  2218. !     /usr/local/X11/include    \
  2219. !     /usr/local/include/X11    \
  2220. !                               \
  2221. !     /usr/X386/include         \
  2222. !     /usr/x386/include         \
  2223. !     /usr/XFree86/include/X11  \
  2224. !                               \
  2225. !     /usr/include              \
  2226. !     /usr/local/include        \
  2227. !     /usr/unsupported/include  \
  2228. !     /usr/athena/include       \
  2229. !     /usr/local/x11r5/include  \
  2230. !     /usr/lpp/Xamples/include  \
  2231. !                               \
  2232. !     /usr/openwin/include      \
  2233.       /usr/openwin/share/include \
  2234.       ; \
  2235.     do
  2236. !     if test -r "$ac_dir/$x_direct_test_include"; then
  2237. !       test -z "$x_includes" && x_includes=$ac_dir
  2238. !       no_x=
  2239.         break
  2240.       fi
  2241. ***************
  2242. *** 1014,1053 ****
  2243.   # Check for the libraries.  First see if replacing the `include' by
  2244.   # `lib' works.
  2245. ! LIBS_save="${LIBS}"
  2246. ! LIBS="${LIBS} -lXt"
  2247. ! have_lib=""
  2248. ! echo checking for -lXt
  2249. ! cat > conftest.c <<EOF
  2250.   #include "confdefs.h"
  2251.   
  2252. ! int main() { exit(0); }
  2253. ! int t() { main(); }
  2254.   EOF
  2255. ! if eval $compile; then
  2256.     rm -rf conftest*
  2257. !   have_lib="1"
  2258.   
  2259.   fi
  2260.   rm -f conftest*
  2261. ! LIBS="${LIBS_save}"
  2262. ! if test -n "${have_lib}"; then
  2263.      :; no_x=
  2264.   else
  2265. !    :; for dir in `echo "$x_includes" | sed s/include/lib/` \
  2266. !   /usr/local/lib \
  2267. !   /usr/unsupported/lib \
  2268. !   /usr/x386/lib \
  2269. !   /usr/local/x11r5/lib \
  2270. !   /usr/lib/X11 \
  2271. !   /usr/lib/X11R4 \
  2272. !   /usr/X11R5/lib \
  2273. !   /usr/X11/lib \
  2274. !   /usr/openwin/lib \
  2275. !   /usr/lpp/Xamples/lib \
  2276. !   ; \
  2277.   do
  2278. !   for extension in a so sl; do
  2279. !     if test -r $dir/libXt.$extension; then
  2280. !       x_libraries=$dir; no_x=
  2281.         break 2
  2282.       fi
  2283. --- 1420,1484 ----
  2284.   # Check for the libraries.  First see if replacing the `include' by
  2285.   # `lib' works.
  2286. ! ac_save_LIBS="${LIBS}"
  2287. ! LIBS="${LIBS} -l"$x_direct_test_library""
  2288. ! ac_have_lib=""
  2289. ! test -n "$silent" || echo "checking for -l"$x_direct_test_library""
  2290. ! cat > conftest.${ac_ext} <<EOF
  2291.   #include "confdefs.h"
  2292.   
  2293. ! int main() { return 0; }
  2294. ! int t() { main();; return 0; }
  2295.   EOF
  2296. ! if eval $ac_compile; then
  2297.     rm -rf conftest*
  2298. !   ac_have_lib="1"
  2299.   
  2300.   fi
  2301.   rm -f conftest*
  2302. ! LIBS="${ac_save_LIBS}"
  2303. ! if test -n "${ac_have_lib}"; then
  2304.      :; no_x=
  2305.   else
  2306. !    :; for ac_dir in `echo "$x_includes" | sed s/include/lib/` \
  2307. !     /usr/X11R6/lib        \
  2308. !     /usr/X11R5/lib        \
  2309. !     /usr/X11R4/lib        \
  2310. !                           \
  2311. !     /usr/lib/X11R6        \
  2312. !     /usr/lib/X11R5        \
  2313. !     /usr/lib/X11R4        \
  2314. !                           \
  2315. !     /usr/local/X11R6/lib  \
  2316. !     /usr/local/X11R5/lib  \
  2317. !     /usr/local/X11R4/lib  \
  2318. !                           \
  2319. !     /usr/local/lib/X11R6  \
  2320. !     /usr/local/lib/X11R5  \
  2321. !     /usr/local/lib/X11R4  \
  2322. !                           \
  2323. !     /usr/X11/lib          \
  2324. !     /usr/lib/X11          \
  2325. !     /usr/local/X11/lib    \
  2326. !     /usr/local/lib/X11    \
  2327. !                           \
  2328. !     /usr/X386/lib         \
  2329. !     /usr/x386/lib         \
  2330. !     /usr/XFree86/lib/X11  \
  2331. !                           \
  2332. !     /usr/lib              \
  2333. !     /usr/local/lib        \
  2334. !     /usr/unsupported/lib  \
  2335. !     /usr/athena/lib       \
  2336. !     /usr/local/x11r5/lib  \
  2337. !     /usr/lpp/Xamples/lib  \
  2338. !                           \
  2339. !     /usr/openwin/lib      \
  2340. !     /usr/openwin/share/lib \
  2341. !     ; \
  2342.   do
  2343. !   for ac_extension in a so sl; do
  2344. !     if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
  2345. !       test -z "$x_libraries" && x_libraries=$ac_dir
  2346. !       no_x=
  2347.         break 2
  2348.       fi
  2349. ***************
  2350. *** 1057,1141 ****
  2351.   
  2352.   fi
  2353. ! if test -n "$verbose"; then
  2354. !   test -n "$x_includes" && echo "    found X11 headers in $x_includes"
  2355. !   test -n "$x_libraries" && echo "    found X11 libraries in $x_libraries"
  2356.   fi
  2357.     
  2358.   if test -n "$x_includes"; then
  2359. !   x_include_flags=-I$x_includes
  2360.   elif test -n "$no_x"; then 
  2361.     # Not all programs may use this symbol, but it won't hurt to define it.
  2362. !   x_include_flags=-DX_DISPLAY_MISSING
  2363.   fi
  2364. ! #
  2365. ! # It would be nice to have a more robust check for the -R ld option then
  2366.   # just checking for Solaris.
  2367. - # 
  2368.   # It would also be nice to do this for all -L options, not just this one.
  2369.   if test -n "$x_libraries"; then
  2370. !   x_lib_flags=-L$x_libraries
  2371. !   if test "`uname 2>/dev/null`" = SunOS \
  2372.        && uname -r | grep '^5' >/dev/null; then
  2373. !     x_lib_flags="$x_lib_flags -R$x_libraries"
  2374.     fi
  2375.   fi
  2376. ! #
  2377. ! # Check for additional X libraries.
  2378. ! # 
  2379. ! # Since we already have an explicit check for POSIXified ISC, assume
  2380. ! # it's been used.
  2381.   if test -n "$ISC"; then
  2382. !   x_extra_libs="$x_extra_libs -lnsl_s -linet"
  2383. !   test -n "$verbose" && echo "    adding -lnsl_s -linet to x_extra_libs (for ISC)"
  2384.   else
  2385.     # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
  2386.     # libraries were built with DECnet support.  And karl@cs.umb.edu's Alpha
  2387. !   # needs dnet_stub.
  2388. !   LIBS_save="${LIBS}"
  2389.   LIBS="${LIBS} -ldnet"
  2390. ! have_lib=""
  2391. ! echo checking for -ldnet
  2392. ! cat > conftest.c <<EOF
  2393.   #include "confdefs.h"
  2394.   
  2395. ! int main() { exit(0); }
  2396. ! int t() { main(); }
  2397.   EOF
  2398. ! if eval $compile; then
  2399.     rm -rf conftest*
  2400. !   have_lib="1"
  2401.   
  2402.   fi
  2403.   rm -f conftest*
  2404. ! LIBS="${LIBS_save}"
  2405. ! if test -n "${have_lib}"; then
  2406. !    :; x_extra_libs="$x_extra_libs -ldnet"
  2407. !      have_dnet=t
  2408. !      test -n "$verbose" && echo "    adding -ldnet to x_extra_libs"
  2409.   else
  2410.      :; 
  2411.   fi
  2412.   
  2413. !   if test -z "$have_dnet"; then
  2414. !     LIBS_save="${LIBS}"
  2415.   LIBS="${LIBS} -ldnet_stub"
  2416. ! have_lib=""
  2417. ! echo checking for -ldnet_stub
  2418. ! cat > conftest.c <<EOF
  2419.   #include "confdefs.h"
  2420.   
  2421. ! int main() { exit(0); }
  2422. ! int t() { main(); }
  2423.   EOF
  2424. ! if eval $compile; then
  2425.     rm -rf conftest*
  2426. !   have_lib="1"
  2427.   
  2428.   fi
  2429.   rm -f conftest*
  2430. ! LIBS="${LIBS_save}"
  2431. ! if test -n "${have_lib}"; then
  2432. !    :; x_extra_libs="$x_extra_libs -ldnet_stub"
  2433. !        test -n "$verbose" && echo "    adding -ldnet_stub to x_extra_libs"
  2434.   else
  2435.      :; 
  2436. --- 1488,1566 ----
  2437.   
  2438.   fi
  2439. ! test -n "$x_includes" && test -n "$verbose" && echo "    X11 headers are in $x_includes"
  2440. ! test -n "$x_libraries" && test -n "$verbose" && echo "    X11 libraries are in $x_libraries"
  2441.   fi
  2442.     
  2443. + test -n "$silent" || echo "checking for additional X libraries and flags"
  2444.   if test -n "$x_includes"; then
  2445. !   X_CFLAGS="$X_CFLAGS -I$x_includes"
  2446.   elif test -n "$no_x"; then 
  2447.     # Not all programs may use this symbol, but it won't hurt to define it.
  2448. !   X_CFLAGS="$X_CFLAGS -DX_DISPLAY_MISSING"
  2449.   fi
  2450. ! # It would be nice to have a more robust check for the -R ld option than
  2451.   # just checking for Solaris.
  2452.   # It would also be nice to do this for all -L options, not just this one.
  2453.   if test -n "$x_libraries"; then
  2454. !   X_LIBS="$X_LIBS -L$x_libraries"
  2455. !   if test "`(uname) 2>/dev/null`" = SunOS \
  2456.        && uname -r | grep '^5' >/dev/null; then
  2457. !     X_LIBS="$X_LIBS -R$x_libraries"
  2458.     fi
  2459.   fi
  2460. ! # Check for system-dependent libraries X programs must link with.
  2461.   if test -n "$ISC"; then
  2462. !   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  2463.   else
  2464.     # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
  2465.     # libraries were built with DECnet support.  And karl@cs.umb.edu's Alpha
  2466. !   # needs dnet_stub (dnet doesn't exist).
  2467. !   ac_save_LIBS="${LIBS}"
  2468.   LIBS="${LIBS} -ldnet"
  2469. ! ac_have_lib=""
  2470. ! test -n "$silent" || echo "checking for -ldnet"
  2471. ! cat > conftest.${ac_ext} <<EOF
  2472.   #include "confdefs.h"
  2473.   
  2474. ! int main() { return 0; }
  2475. ! int t() { main();; return 0; }
  2476.   EOF
  2477. ! if eval $ac_compile; then
  2478.     rm -rf conftest*
  2479. !   ac_have_lib="1"
  2480.   
  2481.   fi
  2482.   rm -f conftest*
  2483. ! LIBS="${ac_save_LIBS}"
  2484. ! if test -n "${ac_have_lib}"; then
  2485. !    :; X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  2486. !      ac_have_dnet=t
  2487.   else
  2488.      :; 
  2489.   fi
  2490.   
  2491. !   if test -z "$ac_have_dnet"; then
  2492. !     ac_save_LIBS="${LIBS}"
  2493.   LIBS="${LIBS} -ldnet_stub"
  2494. ! ac_have_lib=""
  2495. ! test -n "$silent" || echo "checking for -ldnet_stub"
  2496. ! cat > conftest.${ac_ext} <<EOF
  2497.   #include "confdefs.h"
  2498.   
  2499. ! int main() { return 0; }
  2500. ! int t() { main();; return 0; }
  2501.   EOF
  2502. ! if eval $ac_compile; then
  2503.     rm -rf conftest*
  2504. !   ac_have_lib="1"
  2505.   
  2506.   fi
  2507.   rm -f conftest*
  2508. ! LIBS="${ac_save_LIBS}"
  2509. ! if test -n "${ac_have_lib}"; then
  2510. !    :; X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  2511.   else
  2512.      :; 
  2513. ***************
  2514. *** 1143,1195 ****
  2515.   
  2516.     fi
  2517. !   # lieder@skyler.mavd.honeywell.com says without -lsocket,
  2518. !   # socket/setsockopt and other routines are undefined under SCO ODT 2.0.
  2519. !   LIBS_save="${LIBS}"
  2520. ! LIBS="${LIBS} -lsocket"
  2521. ! have_lib=""
  2522. ! echo checking for -lsocket
  2523. ! cat > conftest.c <<EOF
  2524.   #include "confdefs.h"
  2525.   
  2526. ! int main() { exit(0); }
  2527. ! int t() { main(); }
  2528.   EOF
  2529. ! if eval $compile; then
  2530.     rm -rf conftest*
  2531. !   have_lib="1"
  2532.   
  2533.   fi
  2534.   rm -f conftest*
  2535. ! LIBS="${LIBS_save}"
  2536. ! if test -n "${have_lib}"; then
  2537. !    :; x_extra_libs="$x_extra_libs -lsocket"
  2538. !      test -n "$verbose" && echo "    adding -lsocket to x_extra_libs"
  2539.   else
  2540.      :; 
  2541.   fi
  2542.   
  2543. ! fi
  2544. ! #
  2545. !   if test -z "$Xextlib"; then
  2546. !     LIBS_save="${LIBS}"
  2547. ! LIBS="${LIBS} -lXext"
  2548. ! have_lib=""
  2549. ! echo checking for -lXext
  2550. ! cat > conftest.c <<EOF
  2551.   #include "confdefs.h"
  2552.   
  2553. ! int main() { exit(0); }
  2554. ! int t() { main(); }
  2555.   EOF
  2556. ! if eval $compile; then
  2557.     rm -rf conftest*
  2558. !   have_lib="1"
  2559.   
  2560.   fi
  2561.   rm -f conftest*
  2562. ! LIBS="${LIBS_save}"
  2563. ! if test -n "${have_lib}"; then
  2564. !    :; Xextlib=-lXext
  2565.   else
  2566.      :; 
  2567. --- 1568,1622 ----
  2568.   
  2569.     fi
  2570. !   #
  2571. !   # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT.
  2572. !   # Not sure which flavor of 386 Unix this is, but it seems harmless to
  2573. !   # check for it.
  2574. !   ac_save_LIBS="${LIBS}"
  2575. ! LIBS="${LIBS} -lnsl"
  2576. ! ac_have_lib=""
  2577. ! test -n "$silent" || echo "checking for -lnsl"
  2578. ! cat > conftest.${ac_ext} <<EOF
  2579.   #include "confdefs.h"
  2580.   
  2581. ! int main() { return 0; }
  2582. ! int t() { main();; return 0; }
  2583.   EOF
  2584. ! if eval $ac_compile; then
  2585.     rm -rf conftest*
  2586. !   ac_have_lib="1"
  2587.   
  2588.   fi
  2589.   rm -f conftest*
  2590. ! LIBS="${ac_save_LIBS}"
  2591. ! if test -n "${ac_have_lib}"; then
  2592. !    :; X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  2593.   else
  2594.      :; 
  2595.   fi
  2596.   
  2597. !   #
  2598. !   # lieder@skyler.mavd.honeywell.com says without -lsocket,
  2599. !   # socket/setsockopt and other routines are undefined under SCO ODT 2.0.
  2600. !   # But -lsocket is broken on IRIX, according to simon@lia.di.epfl.ch.
  2601. !   if test "`(uname) 2>/dev/null`" != IRIX; then
  2602. !     ac_save_LIBS="${LIBS}"
  2603. ! LIBS="${LIBS} -lsocket"
  2604. ! ac_have_lib=""
  2605. ! test -n "$silent" || echo "checking for -lsocket"
  2606. ! cat > conftest.${ac_ext} <<EOF
  2607.   #include "confdefs.h"
  2608.   
  2609. ! int main() { return 0; }
  2610. ! int t() { main();; return 0; }
  2611.   EOF
  2612. ! if eval $ac_compile; then
  2613.     rm -rf conftest*
  2614. !   ac_have_lib="1"
  2615.   
  2616.   fi
  2617.   rm -f conftest*
  2618. ! LIBS="${ac_save_LIBS}"
  2619. ! if test -n "${ac_have_lib}"; then
  2620. !    :; X_EXTRA_LIBS="$X_EXTRA_LIBS -lsocket"
  2621.   else
  2622.      :; 
  2623. ***************
  2624. *** 1197,1201 ****
  2625.   
  2626.     fi
  2627. !   wlibs="-lXt $Xextlib -lX11 $wlibs"
  2628.     (cd $srcdir/mf/MFwindow; rm -f x11.c; $LN_S x11-Xt.c x11.c)
  2629.   fi
  2630. --- 1624,1670 ----
  2631.   
  2632.     fi
  2633. ! fi
  2634. ! # Check for libraries that X11R6 Xt/Xaw programs need.
  2635. ! save_ldflags=$LDFLAGS
  2636. ! LDFLAGS="$LDFLAGS -L$x_libraries"
  2637. ! # Unfortunately, SM needs ICE to (dynamically) link under SunOS 4.x (so
  2638. ! # we have to check for ICE first), but we must link in the order -lSM
  2639. ! # -lICE or we get undefined symbols.  Resolution is just to assume we
  2640. ! # have SM if we have ICE.  Why not?  Furthermore, these have to be
  2641. ! # linked with before -lX11, in contrast to the other libraries we check
  2642. ! # for below, so use a different variable.
  2643. ! #  --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
  2644. ! ac_save_LIBS="${LIBS}"
  2645. ! LIBS="${LIBS} -lICE $X_EXTRA_LIBS"
  2646. ! ac_have_lib=""
  2647. ! test -n "$silent" || echo "checking for -lICE $X_EXTRA_LIBS"
  2648. ! cat > conftest.${ac_ext} <<EOF
  2649. ! #include "confdefs.h"
  2650. ! int main() { return 0; }
  2651. ! int t() { main();; return 0; }
  2652. ! EOF
  2653. ! if eval $ac_compile; then
  2654. !   rm -rf conftest*
  2655. !   ac_have_lib="1"
  2656. ! fi
  2657. ! rm -f conftest*
  2658. ! LIBS="${ac_save_LIBS}"
  2659. ! if test -n "${ac_have_lib}"; then
  2660. !    :; X_R6_LIBS="-lSM -lICE"
  2661. ! else
  2662. !    :; 
  2663. ! fi
  2664. ! LDFLAGS=$save_ldflags
  2665. ! #
  2666. ! test -n "$verbose" && echo "    X compiler flags: $X_CFLAGS"
  2667. ! test -n "$verbose" && echo "    X library flags: $X_LIBS"
  2668. ! test -n "$verbose" && echo "    R6 libraries: $X_R6_LIBS"
  2669. ! test -n "$verbose" && echo "    extra X libraries: $X_EXTRA_LIBS"
  2670. !   wlibs="-lXt $X_R6_LIBS -lX11 $wlibs"
  2671.     (cd $srcdir/mf/MFwindow; rm -f x11.c; $LN_S x11-Xt.c x11.c)
  2672.   fi
  2673. ***************
  2674. *** 1213,1217 ****
  2675.   # If `small' version is not wanted, do nothing -- make will copy the
  2676.   # default change file.
  2677. ! cat > conftest.c <<EOF
  2678.   #include "confdefs.h"
  2679.   #include "$srcdir/lib/c-auto.h.in"
  2680. --- 1682,1686 ----
  2681.   # If `small' version is not wanted, do nothing -- make will copy the
  2682.   # default change file.
  2683. ! cat > conftest.${ac_ext} <<EOF
  2684.   #include "confdefs.h"
  2685.   #include "$srcdir/lib/c-auto.h.in"
  2686. ***************
  2687. *** 1221,1226 ****
  2688.   
  2689.   EOF
  2690. ! err=`eval "($CPP conftest.c >/dev/null) 2>&1"`
  2691. ! if test -z "$err"; then
  2692.     rm -rf conftest*
  2693.     SMALLTeX=t
  2694. --- 1690,1697 ----
  2695.   
  2696.   EOF
  2697. ! # Some shells (Coherent) do redirections in the wrong order, so need
  2698. ! # the parens.
  2699. ! ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  2700. ! if test -z "$ac_err"; then
  2701.     rm -rf conftest*
  2702.     SMALLTeX=t
  2703. ***************
  2704. *** 1235,1244 ****
  2705.   {
  2706.   test -n "$verbose" && \
  2707. ! echo "    defining" GLUERATIO_TYPE to be float
  2708. ! echo "#define" GLUERATIO_TYPE float >> confdefs.h
  2709.   DEFS="$DEFS -DGLUERATIO_TYPE=float"
  2710. ! SEDDEFS="${SEDDEFS}\${SEDdA}GLUERATIO_TYPE\${SEDdB}GLUERATIO_TYPE\${SEDdC}float\${SEDdD}
  2711. ! \${SEDuA}GLUERATIO_TYPE\${SEDuB}GLUERATIO_TYPE\${SEDuC}float\${SEDuD}
  2712. ! \${SEDeA}GLUERATIO_TYPE\${SEDeB}GLUERATIO_TYPE\${SEDeC}float\${SEDeD}
  2713.   "
  2714.   }
  2715. --- 1706,1715 ----
  2716.   {
  2717.   test -n "$verbose" && \
  2718. ! echo "    defining" GLUERATIO_TYPE to be "float"
  2719. ! echo "#define" GLUERATIO_TYPE "float" >> confdefs.h
  2720.   DEFS="$DEFS -DGLUERATIO_TYPE=float"
  2721. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}GLUERATIO_TYPE\${ac_dB}GLUERATIO_TYPE\${ac_dC}float\${ac_dD}
  2722. ! \${ac_uA}GLUERATIO_TYPE\${ac_uB}GLUERATIO_TYPE\${ac_uC}float\${ac_uD}
  2723. ! \${ac_eA}GLUERATIO_TYPE\${ac_eB}GLUERATIO_TYPE\${ac_eC}float\${ac_eD}
  2724.   "
  2725.   }
  2726. ***************
  2727. *** 1247,1251 ****
  2728.   
  2729.   # Metafont next.
  2730. ! cat > conftest.c <<EOF
  2731.   #include "confdefs.h"
  2732.   #include "$srcdir/lib/c-auto.h.in"
  2733. --- 1718,1722 ----
  2734.   
  2735.   # Metafont next.
  2736. ! cat > conftest.${ac_ext} <<EOF
  2737.   #include "confdefs.h"
  2738.   #include "$srcdir/lib/c-auto.h.in"
  2739. ***************
  2740. *** 1255,1260 ****
  2741.   
  2742.   EOF
  2743. ! err=`eval "($CPP conftest.c >/dev/null) 2>&1"`
  2744. ! if test -z "$err"; then
  2745.     rm -rf conftest*
  2746.     SMALLMF=t
  2747. --- 1726,1733 ----
  2748.   
  2749.   EOF
  2750. ! # Some shells (Coherent) do redirections in the wrong order, so need
  2751. ! # the parens.
  2752. ! ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  2753. ! if test -z "$ac_err"; then
  2754.     rm -rf conftest*
  2755.     SMALLMF=t
  2756. ***************
  2757. *** 1269,1273 ****
  2758.   
  2759.   # And finally BibTeX.
  2760. ! cat > conftest.c <<EOF
  2761.   #include "confdefs.h"
  2762.   #include "$srcdir/lib/c-auto.h.in"
  2763. --- 1742,1746 ----
  2764.   
  2765.   # And finally BibTeX.
  2766. ! cat > conftest.${ac_ext} <<EOF
  2767.   #include "confdefs.h"
  2768.   #include "$srcdir/lib/c-auto.h.in"
  2769. ***************
  2770. *** 1277,1282 ****
  2771.   
  2772.   EOF
  2773. ! err=`eval "($CPP conftest.c >/dev/null) 2>&1"`
  2774. ! if test -z "$err"; then
  2775.     rm -rf conftest*
  2776.     SMALLBibTeX=t
  2777. --- 1750,1757 ----
  2778.   
  2779.   EOF
  2780. ! # Some shells (Coherent) do redirections in the wrong order, so need
  2781. ! # the parens.
  2782. ! ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  2783. ! if test -z "$ac_err"; then
  2784.     rm -rf conftest*
  2785.     SMALLBibTeX=t
  2786. ***************
  2787. *** 1291,1313 ****
  2788.   fi
  2789.   
  2790. ! # Set default prefixes.
  2791.   if test -n "$prefix"; then
  2792. !   test -z "$exec_prefix" && exec_prefix='${prefix}'
  2793. !   prsub="s%^prefix\\([     ]*\\)=\\([     ]*\\).*$%prefix\\1=\\2$prefix%"
  2794.   fi
  2795.   if test -n "$exec_prefix"; then
  2796. !   prsub="$prsub
  2797.   s%^exec_prefix\\([     ]*\\)=\\([     ]*\\).*$%exec_prefix\\1=\\2$exec_prefix%"
  2798.   fi
  2799.   # Quote sed substitution magic chars in DEFS.
  2800.   cat >conftest.def <<EOF
  2801.   $DEFS
  2802.   EOF
  2803. ! escape_ampersand_and_backslash='s%[&\\]%\\&%g'
  2804. ! DEFS=`sed "$escape_ampersand_and_backslash" <conftest.def`
  2805.   rm -f conftest.def
  2806.   # Substitute for predefined variables.
  2807.   
  2808. ! trap 'rm -f config.status; exit 1' 1 3 15
  2809.   echo creating config.status
  2810.   rm -f config.status
  2811. --- 1766,1800 ----
  2812.   fi
  2813.   
  2814. ! # The preferred way to propogate these variables is regular @ substitutions.
  2815.   if test -n "$prefix"; then
  2816. !   ac_prsub="s%^prefix\\([     ]*\\)=\\([     ]*\\).*$%prefix\\1=\\2$prefix%"
  2817. ! else
  2818. !   prefix=/usr/local
  2819.   fi
  2820.   if test -n "$exec_prefix"; then
  2821. !   ac_prsub="$ac_prsub
  2822.   s%^exec_prefix\\([     ]*\\)=\\([     ]*\\).*$%exec_prefix\\1=\\2$exec_prefix%"
  2823. + else
  2824. +   exec_prefix='${prefix}' # Let make expand it.
  2825.   fi
  2826. + # Any assignment to VPATH causes Sun make to only execute
  2827. + # the first set of double-colon rules, so remove it if not needed.
  2828. + # If there is a colon in the path, we need to keep it.
  2829. + if test "x$srcdir" = x.; then
  2830. +   ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  2831. + fi
  2832.   # Quote sed substitution magic chars in DEFS.
  2833.   cat >conftest.def <<EOF
  2834.   $DEFS
  2835.   EOF
  2836. ! ac_escape_ampersand_and_backslash='s%[&\\]%\\&%g'
  2837. ! DEFS=`sed "$ac_escape_ampersand_and_backslash" <conftest.def`
  2838.   rm -f conftest.def
  2839.   # Substitute for predefined variables.
  2840.   
  2841. ! trap 'rm -f config.status; exit 1' 1 2 15
  2842.   echo creating config.status
  2843.   rm -f config.status
  2844. ***************
  2845. *** 1321,1331 ****
  2846.   # $0 $configure_args
  2847.   
  2848. ! for arg
  2849.   do
  2850. !   case "\$arg" in
  2851. !     -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  2852. !     echo running \${CONFIG_SHELL-/bin/sh} $0 $configure_args
  2853. !     exec \${CONFIG_SHELL-/bin/sh} $0 $configure_args ;;
  2854. !     *) echo "Usage: config.status --recheck" 2>&1; exit 1 ;;
  2855.     esac
  2856.   done
  2857. --- 1808,1824 ----
  2858.   # $0 $configure_args
  2859.   
  2860. ! ac_cs_usage="Usage: config.status [--recheck] [--version] [--help]"
  2861. ! for ac_option
  2862.   do
  2863. !   case "\$ac_option" in
  2864. !   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  2865. !     echo running \${CONFIG_SHELL-/bin/sh} $0 $configure_args --no-create
  2866. !     exec \${CONFIG_SHELL-/bin/sh} $0 $configure_args --no-create ;;
  2867. !   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  2868. !     echo "config.status generated by autoconf version 1.11"
  2869. !     exit 0 ;;
  2870. !   -help | --help | --hel | --he | --h)
  2871. !     echo "\$ac_cs_usage"; exit 0 ;;
  2872. !   *) echo "\$ac_cs_usage"; exit 1 ;;
  2873.     esac
  2874.   done
  2875. ***************
  2876. *** 1333,1337 ****
  2877.   trap 'rm -fr Makefile bibtex/Makefile dviutil/Makefile fontutil/Makefile \
  2878.   lib/Makefile man/Makefile mf/Makefile mf/MFwindow/Makefile \
  2879. ! tex/Makefile web/Makefile web2c/Makefile lib/c-auto.h conftest*; exit 1' 1 3 15
  2880.   CC='$CC'
  2881.   CPP='$CPP'
  2882. --- 1826,1830 ----
  2883.   trap 'rm -fr Makefile bibtex/Makefile dviutil/Makefile fontutil/Makefile \
  2884.   lib/Makefile man/Makefile mf/Makefile mf/MFwindow/Makefile \
  2885. ! tex/Makefile web/Makefile web2c/Makefile lib/c-auto.h conftest*; exit 1' 1 2 15
  2886.   CC='$CC'
  2887.   CPP='$CPP'
  2888. ***************
  2889. *** 1345,1379 ****
  2890.   LN_S='$LN_S'
  2891.   LEX_OUTPUT_ROOT='$LEX_OUTPUT_ROOT'
  2892. ! x_include_flags='$x_include_flags'
  2893. ! x_lib_flags='$x_lib_flags'
  2894. ! x_extra_libs='$x_extra_libs'
  2895.   wlibs='$wlibs'
  2896.   LIBS='$LIBS'
  2897.   srcdir='$srcdir'
  2898.   prefix='$prefix'
  2899.   exec_prefix='$exec_prefix'
  2900. ! prsub='$prsub'
  2901.   extrasub='$extrasub'
  2902.   EOF
  2903.   cat >> config.status <<\EOF
  2904.   
  2905. ! top_srcdir=$srcdir
  2906.   
  2907.   CONFIG_FILES=${CONFIG_FILES-"Makefile bibtex/Makefile dviutil/Makefile fontutil/Makefile \
  2908.   lib/Makefile man/Makefile mf/Makefile mf/MFwindow/Makefile \
  2909.   tex/Makefile web/Makefile web2c/Makefile"}
  2910. ! for file in .. ${CONFIG_FILES}; do if test "x$file" != x..; then
  2911. !   srcdir=$top_srcdir
  2912.     # Remove last slash and all that follows it.  Not all systems have dirname.
  2913. !   dir=`echo $file|sed 's%/[^/][^/]*$%%'`
  2914. !   if test "$dir" != "$file"; then
  2915. !     test "$top_srcdir" != . && srcdir=$top_srcdir/$dir
  2916. !     test ! -d $dir && mkdir $dir
  2917.     fi
  2918. !   echo creating $file
  2919. !   rm -f $file
  2920. !   echo "# Generated automatically from `echo $file|sed 's|.*/||'`.in by configure." > $file
  2921. !   sed -e "
  2922. ! $prsub
  2923.   $extrasub
  2924.   s%@CC@%$CC%g
  2925. --- 1838,1918 ----
  2926.   LN_S='$LN_S'
  2927.   LEX_OUTPUT_ROOT='$LEX_OUTPUT_ROOT'
  2928. ! X_CFLAGS='$X_CFLAGS'
  2929. ! X_LIBS='$X_LIBS'
  2930. ! X_R6_LIBS='$X_R6_LIBS'
  2931. ! X_EXTRA_LIBS='$X_EXTRA_LIBS'
  2932.   wlibs='$wlibs'
  2933.   LIBS='$LIBS'
  2934.   srcdir='$srcdir'
  2935. + top_srcdir='$top_srcdir'
  2936.   prefix='$prefix'
  2937.   exec_prefix='$exec_prefix'
  2938. ! ac_prsub='$ac_prsub'
  2939. ! ac_vpsub='$ac_vpsub'
  2940.   extrasub='$extrasub'
  2941.   EOF
  2942.   cat >> config.status <<\EOF
  2943.   
  2944. ! ac_given_srcdir=$srcdir
  2945.   
  2946.   CONFIG_FILES=${CONFIG_FILES-"Makefile bibtex/Makefile dviutil/Makefile fontutil/Makefile \
  2947.   lib/Makefile man/Makefile mf/Makefile mf/MFwindow/Makefile \
  2948.   tex/Makefile web/Makefile web2c/Makefile"}
  2949. ! for ac_file in .. ${CONFIG_FILES}; do if test "x$ac_file" != x..; then
  2950.     # Remove last slash and all that follows it.  Not all systems have dirname.
  2951. !   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  2952. !   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  2953. !     # The file is in a subdirectory.
  2954. !     test ! -d "$ac_dir" && mkdir "$ac_dir"
  2955. !     ac_dir_suffix="/$ac_dir"
  2956. !   else
  2957. !     ac_dir_suffix=
  2958.     fi
  2959. !   # A "../" for each directory in $ac_dir_suffix.
  2960. !   ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  2961. !   case "$ac_given_srcdir" in
  2962. !   .)  srcdir=.
  2963. !       if test -z "$ac_dir_suffix"; then top_srcdir=.
  2964. !       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  2965. !   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  2966. !   *) # Relative path.
  2967. !     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  2968. !     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  2969. !   esac
  2970. !   echo creating "$ac_file"
  2971. !   rm -f "$ac_file"
  2972. !   comment_str="Generated automatically from `echo $ac_file|sed 's|.*/||'`.in by configure."
  2973. !   case "$ac_file" in
  2974. !     *.c | *.h | *.C | *.cc | *.m )  echo "/* $comment_str */" > "$ac_file" ;;
  2975. !     * )          echo "# $comment_str"     > "$ac_file" ;;
  2976. !   esac
  2977. !   # Replace lines of the form ac_include foo with the contents of foo:
  2978. !   # first, from the ac_include lines construct a list of sed
  2979. !   # commands to remove them, and include the files; then run sed.
  2980. !   # Have to use sed because old (Ultrix, SunOS) awk does not support
  2981. !   # getline or system. (Anyway, configure scripts aren't supposed to use awk.)
  2982. !   # Use \@...@<cmd> form of sed address because the filename may contain /.
  2983. !   # Can't use only one -e and commands {dr foo} because foo has to be last.
  2984. !   # Use @e initially instead of -e because GNU echo has a -e option.
  2985. !   file_substs=`sed -n \
  2986. ! "/^ac_include/s%ac_include[     ]*\(.*\)%@e '\\\\\@^&@r \1' -e '\\\\\@^&@d'%p"\
  2987. !                $ac_given_srcdir/${ac_file}.in`
  2988. !   if test -n "$file_substs"; then
  2989. !     # Change @e back to -e.
  2990. !     file_subst_cmd="sed `echo $file_substs | sed s/@e/-e/g`"
  2991. !   else
  2992. !     # If no substitutions and hence no sed commands, don't choke.
  2993. !     file_subst_cmd=cat
  2994. !   fi
  2995. !   # cd into the srcdir because the files being included more or less
  2996. !   # must be part of the distribution. I can't find any way to do
  2997. !   # variable substitution in the sed commands (so the user could have,
  2998. !   # e.g., $top_srcdir in their ac_include line).
  2999. !   (cd $ac_given_srcdir && eval $file_subst_cmd ${ac_file}.in) \
  3000. !   | sed -e "
  3001. ! $ac_prsub
  3002. ! $ac_vpsub
  3003.   $extrasub
  3004.   s%@CC@%$CC%g
  3005. ***************
  3006. *** 1388,1425 ****
  3007.   s%@LN_S@%$LN_S%g
  3008.   s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
  3009. ! s%@x_include_flags@%$x_include_flags%g
  3010. ! s%@x_lib_flags@%$x_lib_flags%g
  3011. ! s%@x_extra_libs@%$x_extra_libs%g
  3012.   s%@wlibs@%$wlibs%g
  3013.   s%@LIBS@%$LIBS%g
  3014.   s%@srcdir@%$srcdir%g
  3015. ! s%@DEFS@%-DHAVE_CONFIG_H%" $top_srcdir/${file}.in >> $file
  3016.   fi; done
  3017.   
  3018. ! CONFIG_HEADERS=${CONFIG_HEADERS-"lib/c-auto.h"}
  3019. ! for file in .. ${CONFIG_HEADERS}; do if test "x$file" != x..; then
  3020. ! echo creating $file
  3021. ! # These sed commands are put into SEDDEFS when defining a macro.
  3022.   # They are broken into pieces to make the sed script easier to manage.
  3023.   # They are passed to sed as "A NAME B NAME C VALUE D", where NAME
  3024.   # is the cpp macro being defined and VALUE is the value it is being given.
  3025.   # Each defining turns into a single global substitution command.
  3026.   #
  3027. ! # SEDd sets the value in "#define NAME VALUE" lines.
  3028. ! SEDdA='s@^\([     ]*\)#\([     ]*define[     ][     ]*\)'
  3029. ! SEDdB='\([     ][     ]*\)[^     ]*@\1#\2'
  3030. ! SEDdC='\3'
  3031. ! SEDdD='@g'
  3032. ! # SEDu turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  3033. ! SEDuA='s@^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  3034. ! SEDuB='\([     ]\)@\1#\2define\3'
  3035. ! SEDuC=' '
  3036. ! SEDuD='\4@g'
  3037. ! # SEDe turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  3038. ! SEDeA='s@^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  3039. ! SEDeB='$@\1#\2define\3'
  3040. ! SEDeC=' '
  3041. ! SEDeD='@g'
  3042.   rm -f conftest.sed
  3043.   EOF
  3044. --- 1927,1966 ----
  3045.   s%@LN_S@%$LN_S%g
  3046.   s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
  3047. ! s%@X_CFLAGS@%$X_CFLAGS%g
  3048. ! s%@X_LIBS@%$X_LIBS%g
  3049. ! s%@X_R6_LIBS@%$X_R6_LIBS%g
  3050. ! s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
  3051.   s%@wlibs@%$wlibs%g
  3052.   s%@LIBS@%$LIBS%g
  3053.   s%@srcdir@%$srcdir%g
  3054. ! s%@top_srcdir@%$top_srcdir%g
  3055. ! s%@prefix@%$prefix%g
  3056. ! s%@exec_prefix@%$exec_prefix%g
  3057. ! s%@DEFS@%-DHAVE_CONFIG_H%" >> $ac_file
  3058.   fi; done
  3059.   
  3060. ! # These sed commands are put into ac_sed_defs when defining a macro.
  3061.   # They are broken into pieces to make the sed script easier to manage.
  3062.   # They are passed to sed as "A NAME B NAME C VALUE D", where NAME
  3063.   # is the cpp macro being defined and VALUE is the value it is being given.
  3064.   # Each defining turns into a single global substitution command.
  3065. + # Hopefully no one uses "!" as a variable value.
  3066. + # Other candidates for the sed separators, like , and @, do get used.
  3067.   #
  3068. ! # ac_d sets the value in "#define NAME VALUE" lines.
  3069. ! ac_dA='s!^\([     ]*\)#\([     ]*define[     ][     ]*\)'
  3070. ! ac_dB='\([     ][     ]*\)[^     ]*!\1#\2'
  3071. ! ac_dC='\3'
  3072. ! ac_dD='!g'
  3073. ! # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  3074. ! ac_uA='s!^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  3075. ! ac_uB='\([     ]\)!\1#\2define\3'
  3076. ! ac_uC=' '
  3077. ! ac_uD='\4!g'
  3078. ! # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  3079. ! ac_eA='s!^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  3080. ! ac_eB='$!\1#\2define\3'
  3081. ! ac_eC=' '
  3082. ! ac_eD='!g'
  3083.   rm -f conftest.sed
  3084.   EOF
  3085. ***************
  3086. *** 1427,1447 ****
  3087.   rm -f conftest.sh
  3088.   cat > conftest.sh <<EOF
  3089. ! $SEDDEFS
  3090.   EOF
  3091.   
  3092. ! # Break up $SEDDEFS (now in conftest.sh) because some shells have a limit
  3093.   # on the size of here documents.
  3094.   
  3095.   # Maximum number of lines to put in a single here document.
  3096. ! maxshlines=9
  3097.   
  3098.   while :
  3099.   do
  3100. !   # wc gives bogus results for an empty file on some systems.
  3101. !   lines=`grep -c . conftest.sh`
  3102. !   if test -z "$lines" || test "$lines" -eq 0; then break; fi
  3103.     rm -f conftest.s1 conftest.s2
  3104. !   sed ${maxshlines}q conftest.sh > conftest.s1 # Like head -20.
  3105. !   sed 1,${maxshlines}d conftest.sh > conftest.s2 # Like tail +21.
  3106.     # Write a limited-size here document to append to conftest.sed.
  3107.     echo 'cat >> conftest.sed <<CONFEOF' >> config.status
  3108. --- 1968,1988 ----
  3109.   rm -f conftest.sh
  3110.   cat > conftest.sh <<EOF
  3111. ! $ac_sed_defs
  3112.   EOF
  3113.   
  3114. ! # Break up $ac_sed_defs (now in conftest.sh) because some shells have a limit
  3115.   # on the size of here documents.
  3116.   
  3117.   # Maximum number of lines to put in a single here document.
  3118. ! ac_max_sh_lines=9
  3119.   
  3120.   while :
  3121.   do
  3122. !   # wc gives bogus results for an empty file on some AIX systems.
  3123. !   ac_lines=`grep -c . conftest.sh`
  3124. !   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  3125.     rm -f conftest.s1 conftest.s2
  3126. !   sed ${ac_max_sh_lines}q conftest.sh > conftest.s1 # Like head -9.
  3127. !   sed 1,${ac_max_sh_lines}d conftest.sh > conftest.s2 # Like tail +10.
  3128.     # Write a limited-size here document to append to conftest.sed.
  3129.     echo 'cat >> conftest.sed <<CONFEOF' >> config.status
  3130. ***************
  3131. *** 1464,1494 ****
  3132.   rm -f conftest.h
  3133.   # Break up the sed commands because old seds have small limits.
  3134. ! maxsedlines=20
  3135. ! cp $top_srcdir/$file.in conftest.h1
  3136. ! while :
  3137. ! do
  3138. !   lines=`grep -c . conftest.sed`
  3139. !   if test -z "$lines" || test "$lines" -eq 0; then break; fi
  3140. !   rm -f conftest.s1 conftest.s2 conftest.h2
  3141. !   sed ${maxsedlines}q conftest.sed > conftest.s1 # Like head -20.
  3142. !   sed 1,${maxsedlines}d conftest.sed > conftest.s2 # Like tail +21.
  3143. !   sed -f conftest.s1 < conftest.h1 > conftest.h2
  3144. !   rm -f conftest.s1 conftest.h1 conftest.sed
  3145. !   mv conftest.h2 conftest.h1
  3146. !   mv conftest.s2 conftest.sed
  3147. ! done
  3148. ! rm -f conftest.sed conftest.h
  3149. ! echo "/* $file.  Generated automatically by configure.  */" > conftest.h
  3150. ! cat conftest.h1 >> conftest.h
  3151. ! rm -f conftest.h1
  3152. ! if cmp -s $file conftest.h 2>/dev/null; then
  3153. !   # The file exists and we would not be changing it.
  3154. !   echo "$file is unchanged"
  3155. !   rm -f conftest.h
  3156. ! else
  3157. !   rm -f $file
  3158. !   mv conftest.h $file
  3159. ! fi
  3160.   fi; done
  3161.   
  3162.   
  3163. --- 2005,2042 ----
  3164.   rm -f conftest.h
  3165.   # Break up the sed commands because old seds have small limits.
  3166. ! ac_max_sed_lines=20
  3167. ! CONFIG_HEADERS=${CONFIG_HEADERS-"lib/c-auto.h"}
  3168. ! for ac_file in .. ${CONFIG_HEADERS}; do if test "x$ac_file" != x..; then
  3169. !   echo creating $ac_file
  3170. !   cp $ac_given_srcdir/$ac_file.in conftest.h1
  3171. !   cp conftest.sed conftest.stm
  3172. !   while :
  3173. !   do
  3174. !     ac_lines=`grep -c . conftest.stm`
  3175. !     if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  3176. !     rm -f conftest.s1 conftest.s2 conftest.h2
  3177. !     sed ${ac_max_sed_lines}q conftest.stm > conftest.s1 # Like head -20.
  3178. !     sed 1,${ac_max_sed_lines}d conftest.stm > conftest.s2 # Like tail +21.
  3179. !     sed -f conftest.s1 < conftest.h1 > conftest.h2
  3180. !     rm -f conftest.s1 conftest.h1 conftest.stm
  3181. !     mv conftest.h2 conftest.h1
  3182. !     mv conftest.s2 conftest.stm
  3183. !   done
  3184. !   rm -f conftest.stm conftest.h
  3185. !   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
  3186. !   cat conftest.h1 >> conftest.h
  3187. !   rm -f conftest.h1
  3188. !   if cmp -s $ac_file conftest.h 2>/dev/null; then
  3189. !     # The file exists and we would not be changing it.
  3190. !     echo "$ac_file is unchanged"
  3191. !     rm -f conftest.h
  3192. !   else
  3193. !     rm -f $ac_file
  3194. !     mv conftest.h $ac_file
  3195. !   fi
  3196.   fi; done
  3197. + rm -f conftest.sed
  3198.   
  3199.   
  3200. ***************
  3201. *** 1497,1500 ****
  3202.   EOF
  3203.   chmod +x config.status
  3204. ! ${CONFIG_SHELL-/bin/sh} config.status
  3205.   
  3206. --- 2045,2049 ----
  3207.   EOF
  3208.   chmod +x config.status
  3209. ! # Some shells look in PATH for config.status without the "./".
  3210. ! test -n "$no_create" || ${CONFIG_SHELL-/bin/sh} ./config.status
  3211.   
  3212. --- end of replacement patch ---
  3213.  
  3214. *** web2c/lib/c-auto.h.in.save    Tue Feb  1 12:28:36 1994
  3215. --- web2c/lib/c-auto.h.in    Fri Sep 23 18:28:15 1994
  3216. ***************
  3217. *** 152,156 ****
  3218.   
  3219.   /* Define as the proper declaration for yytext.  */
  3220. ! #undef DECLARE_YYTEXT
  3221.   
  3222.   /* Define if you have dirent.h.  */
  3223. --- 152,161 ----
  3224.   
  3225.   /* Define as the proper declaration for yytext.  */
  3226. ! #undef YYTEXT_POINTER
  3227. ! #if YYTEXT_POINTER
  3228. ! #define DECLARE_YYTEXT extern char *yytext;
  3229. ! #else
  3230. ! #define DECLARE_YYTEXT extern char yytext[];
  3231. ! #endif
  3232.   
  3233.   /* Define if you have dirent.h.  */
  3234. *** web2c/lib/main.c.save    Tue May 25 11:41:19 1993
  3235. --- web2c/lib/main.c    Fri Sep 23 15:48:40 1994
  3236. ***************
  3237. *** 28,31 ****
  3238. --- 28,32 ----
  3239.     argc = ac;
  3240.     gargv = av;
  3241. +   kpse_set_progname(av[0]);
  3242.     main_body ();
  3243.     return EXIT_SUCCESS;
  3244. *** web2c/lib/openinout.c.save    Sat Dec  4 13:01:52 1993
  3245. --- web2c/lib/openinout.c    Wed Sep 28 16:26:41 1994
  3246. ***************
  3247. *** 125,128 ****
  3248. --- 125,131 ----
  3249.       kpse_file_format_type format;
  3250.   {
  3251. +   static boolean kpathsea_dpi_set = 0;
  3252. +   static boolean maketex_base_dpi_set = 0;
  3253.     string found;
  3254.     /* Since & is a no-op when applied to an array, we must put the
  3255. ***************
  3256. *** 130,133 ****
  3257. --- 133,149 ----
  3258.     string name = nameoffile;
  3259.     
  3260. +   if (!kpathsea_dpi_set)
  3261. +     {
  3262. +       if (!getenv ("KPATHSEA_DPI"))
  3263. +     xputenv_int ("KPATHSEA_DPI", 300);
  3264. +       kpathsea_dpi_set = 1;
  3265. +     }
  3266. +   if (!maketex_base_dpi_set)
  3267. +     {
  3268. +       if (!getenv ("MAKETEX_BASE_DPI"))
  3269. +     xputenv_int ("MAKETEX_BASE_DPI", 300);
  3270. +       maketex_base_dpi_set = 1;
  3271. +     }
  3272.     make_c_string (&name);
  3273.     found = kpse_make_tex (format, name);
  3274. *** web2c/lib/ourpaths.c.save    Sun Dec  5 12:48:44 1993
  3275. --- web2c/lib/ourpaths.c    Wed Sep 28 14:14:18 1994
  3276. ***************
  3277. *** 3,14 ****
  3278.   #include "config.h"
  3279.   
  3280. ! #include <kpathsea/filefmt.h>
  3281.   #include <kpathsea/fontmap.h>
  3282.   #include <kpathsea/pathsearch.h>
  3283.   
  3284.   /* `path_dirs' is initialized in `setpaths', to a null-terminated array
  3285.      of directories to search for.  */
  3286. ! static string path_dirs[LAST_PATH];
  3287.   
  3288.   
  3289. --- 3,17 ----
  3290.   #include "config.h"
  3291.   
  3292. ! #include <kpathsea/cnf.h>
  3293. ! #include <kpathsea/default.h>
  3294. ! #include <kpathsea/expand.h>
  3295.   #include <kpathsea/fontmap.h>
  3296. + #include <kpathsea/paths.h>
  3297.   #include <kpathsea/pathsearch.h>
  3298. ! #include <kpathsea/tex-file.h>
  3299.   
  3300.   /* `path_dirs' is initialized in `setpaths', to a null-terminated array
  3301.      of directories to search for.  */
  3302. ! static const_string path_dirs[LAST_PATH];
  3303.   
  3304.   
  3305. ***************
  3306. *** 23,60 ****
  3307.   {
  3308.     if (path_bits & BIBINPUTPATHBIT)
  3309. !     path_dirs[BIBINPUTPATH] = KPSE_BIB_PATH ();
  3310.   
  3311.     if (path_bits & BSTINPUTPATHBIT)
  3312. !     path_dirs[BSTINPUTPATH] = KPSE_BST_PATH ();
  3313.   
  3314.     if (path_bits & GFFILEPATHBIT)
  3315. !     path_dirs[GFFILEPATH] = KPSE_GF_PATH ();
  3316.   
  3317.     if (path_bits & MFBASEPATHBIT)
  3318. !     path_dirs[MFBASEPATH] = KPSE_BASE_PATH ();
  3319.   
  3320.     if (path_bits & MFINPUTPATHBIT)
  3321. !     path_dirs[MFINPUTPATH] = KPSE_MF_PATH ();
  3322.   
  3323.     if (path_bits & MFPOOLPATHBIT)
  3324. !     path_dirs[MFPOOLPATH] = KPSE_MFPOOL_PATH ();
  3325.   
  3326.     if (path_bits & PKFILEPATHBIT)
  3327. !     path_dirs[PKFILEPATH] = KPSE_PK_PATH ();
  3328.   
  3329.     if (path_bits & TEXFORMATPATHBIT)
  3330. !     path_dirs[TEXFORMATPATH] = KPSE_FMT_PATH ();
  3331.   
  3332.     if (path_bits & TEXINPUTPATHBIT)
  3333. !     path_dirs[TEXINPUTPATH] = KPSE_TEX_PATH ();
  3334.   
  3335.     if (path_bits & TEXPOOLPATHBIT)
  3336. !     path_dirs[TEXPOOLPATH] = KPSE_TEXPOOL_PATH ();
  3337.   
  3338.     if (path_bits & TFMFILEPATHBIT)
  3339. !     path_dirs[TFMFILEPATH] = KPSE_TFM_PATH ();
  3340.   
  3341.     if (path_bits & VFFILEPATHBIT)
  3342. !     path_dirs[VFFILEPATH] = KPSE_VF_PATH ();
  3343.   }
  3344.   
  3345. --- 26,83 ----
  3346.   {
  3347.     if (path_bits & BIBINPUTPATHBIT)
  3348. !     path_dirs[BIBINPUTPATH] = kpse_init_format (kpse_bib_format);
  3349.   
  3350.     if (path_bits & BSTINPUTPATHBIT)
  3351. !     path_dirs[BSTINPUTPATH] = kpse_init_format (kpse_bst_format);
  3352.   
  3353.     if (path_bits & GFFILEPATHBIT)
  3354. !     path_dirs[GFFILEPATH] = kpse_init_format (kpse_gf_format);
  3355.   
  3356.     if (path_bits & MFBASEPATHBIT)
  3357. !     {
  3358. !       string path = DEFAULT_MFBASES;
  3359. !       path = kpse_expand_default (kpse_cnf_get (KPSE_BASE_ENVS), path);
  3360. !       path = kpse_expand_default (getenv (KPSE_BASE_ENVS), path);
  3361. !       path_dirs[MFBASEPATH] = kpse_path_expand (path);
  3362. !     }
  3363.   
  3364.     if (path_bits & MFINPUTPATHBIT)
  3365. !     path_dirs[MFINPUTPATH] = kpse_init_format (kpse_mf_format);
  3366.   
  3367.     if (path_bits & MFPOOLPATHBIT)
  3368. !     {
  3369. !       string path = DEFAULT_MFPOOL;
  3370. !       path = kpse_expand_default (kpse_cnf_get (KPSE_MFPOOL_ENVS), path);
  3371. !       path = kpse_expand_default (getenv (KPSE_MFPOOL_ENVS), path);
  3372. !       path_dirs[MFPOOLPATH] = kpse_path_expand (path);
  3373. !     }
  3374.   
  3375.     if (path_bits & PKFILEPATHBIT)
  3376. !     path_dirs[PKFILEPATH] = kpse_init_format (kpse_pk_format);
  3377.   
  3378.     if (path_bits & TEXFORMATPATHBIT)
  3379. !     {
  3380. !       string path = DEFAULT_TEXFORMATS;
  3381. !       path = kpse_expand_default (kpse_cnf_get (KPSE_FMT_ENVS), path);
  3382. !       path = kpse_expand_default (getenv (KPSE_FMT_ENVS), path);
  3383. !       path_dirs[TEXFORMATPATH] = kpse_path_expand (path);
  3384. !     }
  3385.   
  3386.     if (path_bits & TEXINPUTPATHBIT)
  3387. !     path_dirs[TEXINPUTPATH] = kpse_init_format (kpse_tex_format);
  3388.   
  3389.     if (path_bits & TEXPOOLPATHBIT)
  3390. !     {
  3391. !       string path = DEFAULT_TEXPOOL;
  3392. !       path = kpse_expand_default (kpse_cnf_get (KPSE_TEXPOOL_ENVS), path);
  3393. !       path = kpse_expand_default (getenv (KPSE_TEXPOOL_ENVS), path);
  3394. !       path_dirs[TEXPOOLPATH] = kpse_path_expand (path);
  3395. !     }
  3396.   
  3397.     if (path_bits & TFMFILEPATHBIT)
  3398. !     path_dirs[TFMFILEPATH] = kpse_init_format (kpse_tfm_format);
  3399.   
  3400.     if (path_bits & VFFILEPATHBIT)
  3401. !     path_dirs[VFFILEPATH] = kpse_init_format (kpse_vf_format);
  3402.   }
  3403.   
  3404. ***************
  3405. *** 72,76 ****
  3406.   {
  3407.     string found;  
  3408. !   string path = path_dirs[path_index];
  3409.     
  3410.     make_c_string (&name);
  3411. --- 95,99 ----
  3412.   {
  3413.     string found;  
  3414. !   const_string path = path_dirs[path_index];
  3415.     
  3416.     make_c_string (&name);
  3417. ***************
  3418. *** 79,83 ****
  3419.        have the dpi available separately, and anyway we don't care about
  3420.        having pktogf run MakeTeXPK, etc.  */
  3421. !   found = kpse_path_search (path, name);
  3422.   
  3423.     /* If we didn't find it, and we're looking for a font, maybe it's
  3424. --- 102,106 ----
  3425.        have the dpi available separately, and anyway we don't care about
  3426.        having pktogf run MakeTeXPK, etc.  */
  3427. !   found = kpse_path_search (path, name, true);
  3428.   
  3429.     /* If we didn't find it, and we're looking for a font, maybe it's
  3430. ***************
  3431. *** 89,96 ****
  3432.       {
  3433.         string *mapped_names;
  3434. !       static map_type fontmap = NULL;
  3435.         
  3436.         /* Fault in the mapping if necessary.  */
  3437. !       if (!fontmap)
  3438.           fontmap = map_create (path);
  3439.         
  3440. --- 112,119 ----
  3441.       {
  3442.         string *mapped_names;
  3443. !       static hash_table_type fontmap = { NULL, 0 };
  3444.         
  3445.         /* Fault in the mapping if necessary.  */
  3446. !       if (fontmap.size == 0)
  3447.           fontmap = map_create (path);
  3448.         
  3449. ***************
  3450. *** 102,106 ****
  3451.             while ((mapped_name = *mapped_names++) && !found)
  3452.               {
  3453. !               found = kpse_path_search (path, mapped_name);
  3454.               }
  3455.           }
  3456. --- 125,129 ----
  3457.             while ((mapped_name = *mapped_names++) && !found)
  3458.               {
  3459. !               found = kpse_path_search (path, mapped_name, true);
  3460.               }
  3461.           }
  3462. *** web2c/lib/texmf.c.save    Sun Dec  5 12:53:01 1993
  3463. --- web2c/lib/texmf.c    Fri Sep 23 22:33:56 1994
  3464. ***************
  3465. *** 33,37 ****
  3466.   #include <kpathsea/c-ctype.h>
  3467.   #include <kpathsea/c-pathch.h>
  3468. ! #include <kpathsea/tex-make.h>
  3469.   
  3470.   /* For `struct tm'.  */
  3471. --- 33,37 ----
  3472.   #include <kpathsea/c-ctype.h>
  3473.   #include <kpathsea/c-pathch.h>
  3474. ! #include <kpathsea/tex-file.h>
  3475.   
  3476.   /* For `struct tm'.  */
  3477. ***************
  3478. *** 74,77 ****
  3479. --- 74,79 ----
  3480.     dump_default_length = strlen (dump_default + 1);
  3481.   
  3482. +   kpse_set_progname(av[0]);
  3483.   #ifndef INI
  3484.     if (readyalready != 314159)
  3485. ***************
  3486. *** 99,103 ****
  3487.                               || getenv ("USE_MAKETEXMF")
  3488.                               || getenv ("MAKETEXMF");
  3489. !     KPSE_MAKE_SPEC_ENABLED (kpse_make_specs[kpse_mf_format]) = use_maketexmf;
  3490.     }
  3491.   #endif /* MF */
  3492. --- 101,105 ----
  3493.                               || getenv ("USE_MAKETEXMF")
  3494.                               || getenv ("MAKETEXMF");
  3495. !     kpse_format_info[kpse_mf_format].program_enabled_p = use_maketexmf;
  3496.     }
  3497.   #endif /* MF */
  3498. ***************
  3499. *** 110,115 ****
  3500.                                || getenv ("USE_MAKETEXTFM")
  3501.                                || getenv ("MAKETEXTFM");
  3502. !     KPSE_MAKE_SPEC_ENABLED (kpse_make_specs[kpse_tex_format]) = use_maketextex;
  3503. !     KPSE_MAKE_SPEC_ENABLED (kpse_make_specs[kpse_tfm_format]) = use_maketextfm;
  3504.     }
  3505.   #endif /* TeX */
  3506. --- 112,117 ----
  3507.                                || getenv ("USE_MAKETEXTFM")
  3508.                                || getenv ("MAKETEXTFM");
  3509. !     kpse_format_info[kpse_tex_format].program_enabled_p = use_maketextex;
  3510. !     kpse_format_info[kpse_tfm_format].program_enabled_p = use_maketextfm;
  3511.     }
  3512.   #endif /* TeX */
  3513. *** web2c/mf/Makefile.in.save    Thu Feb  3 04:48:35 1994
  3514. --- web2c/mf/Makefile.in    Sat Sep 24 02:08:29 1994
  3515. ***************
  3516. *** 46,52 ****
  3517.   libs = $(commono) $(LIBS)
  3518.   
  3519. ! x_include_flags = @x_include_flags@
  3520. ! x_lib_flags = @x_lib_flags@
  3521. ! x_extra_libs = @x_extra_libs@
  3522.   wlibs = @wlibs@
  3523.   LIBS = @LIBS@
  3524. --- 46,52 ----
  3525.   libs = $(commono) $(LIBS)
  3526.   
  3527. ! x_include_flags = @X_CFLAGS@
  3528. ! x_lib_flags = @X_LIBS@
  3529. ! x_extra_libs = @X_EXTRA_LIBS@
  3530.   wlibs = @wlibs@
  3531.   LIBS = @LIBS@
  3532. ***************
  3533. *** 72,77 ****
  3534.   # What to pass to submakes.
  3535.   makeargs=SHELL='$(SHELL)' CC='$(CC)' CFLAGS='$(CFLAGS)' \
  3536. ! LDFLAGS='$(LDFLAGS)' LIBS='$(libs)' RANLIB='$(RANLIB)' LN='$(LN)' \
  3537. ! srcdir=$(srcdir)  
  3538.   
  3539.   
  3540. --- 72,76 ----
  3541.   # What to pass to submakes.
  3542.   makeargs=SHELL='$(SHELL)' CC='$(CC)' CFLAGS='$(CFLAGS)' \
  3543. ! LDFLAGS='$(LDFLAGS)' LIBS='$(libs)' RANLIB='$(RANLIB)' LN='$(LN)'
  3544.   
  3545.   
  3546. -- 
  3547. End of web2c.kpathsea-2.2.help
  3548.  
  3549.